ImageTextDetectionFeature¶
-
class
oci.ai_vision.models.ImageTextDetectionFeature(**kwargs)¶ Bases:
oci.ai_vision.models.image_feature.ImageFeatureThe text detection parameters.
Attributes
FEATURE_TYPE_FACE_DETECTIONstr(object=’’) -> str FEATURE_TYPE_FACE_EMBEDDINGstr(object=’’) -> str FEATURE_TYPE_IMAGE_CLASSIFICATIONstr(object=’’) -> str FEATURE_TYPE_OBJECT_DETECTIONstr(object=’’) -> str FEATURE_TYPE_TEXT_DETECTIONstr(object=’’) -> str LANGUAGE_ARAA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_CESA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_CHI_SIMA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_DANA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_DEUA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_ELLA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_ENGA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_FINA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_FRAA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_HINA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_HUNA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_ITAA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_JPNA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_KORA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_NLDA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_NORA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_OTHERSA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_POLA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_PORA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_RONA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_RUSA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_SLKA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_SPAA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_SWEA constant which can be used with the language property of a ImageTextDetectionFeature. LANGUAGE_TURA constant which can be used with the language property of a ImageTextDetectionFeature. feature_type[Required] Gets the feature_type of this ImageFeature. languageGets the language of this ImageTextDetectionFeature. Methods
__init__(**kwargs)Initializes a new ImageTextDetectionFeature object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
FEATURE_TYPE_FACE_DETECTION= 'FACE_DETECTION'¶
-
FEATURE_TYPE_FACE_EMBEDDING= 'FACE_EMBEDDING'¶
-
FEATURE_TYPE_IMAGE_CLASSIFICATION= 'IMAGE_CLASSIFICATION'¶
-
FEATURE_TYPE_OBJECT_DETECTION= 'OBJECT_DETECTION'¶
-
FEATURE_TYPE_TEXT_DETECTION= 'TEXT_DETECTION'¶
-
LANGUAGE_ARA= 'ARA'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “ARA”
-
LANGUAGE_CES= 'CES'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “CES”
-
LANGUAGE_CHI_SIM= 'CHI_SIM'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “CHI_SIM”
-
LANGUAGE_DAN= 'DAN'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “DAN”
-
LANGUAGE_DEU= 'DEU'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “DEU”
-
LANGUAGE_ELL= 'ELL'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “ELL”
-
LANGUAGE_ENG= 'ENG'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “ENG”
-
LANGUAGE_FIN= 'FIN'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “FIN”
-
LANGUAGE_FRA= 'FRA'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “FRA”
-
LANGUAGE_HIN= 'HIN'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “HIN”
-
LANGUAGE_HUN= 'HUN'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “HUN”
-
LANGUAGE_ITA= 'ITA'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “ITA”
-
LANGUAGE_JPN= 'JPN'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “JPN”
-
LANGUAGE_KOR= 'KOR'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “KOR”
-
LANGUAGE_NLD= 'NLD'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “NLD”
-
LANGUAGE_NOR= 'NOR'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “NOR”
-
LANGUAGE_OTHERS= 'OTHERS'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “OTHERS”
-
LANGUAGE_POL= 'POL'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “POL”
-
LANGUAGE_POR= 'POR'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “POR”
-
LANGUAGE_RON= 'RON'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “RON”
-
LANGUAGE_RUS= 'RUS'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “RUS”
-
LANGUAGE_SLK= 'SLK'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “SLK”
-
LANGUAGE_SPA= 'SPA'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “SPA”
-
LANGUAGE_SWE= 'SWE'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “SWE”
-
LANGUAGE_TUR= 'TUR'¶ A constant which can be used with the language property of a ImageTextDetectionFeature. This constant has a value of “TUR”
-
__init__(**kwargs)¶ Initializes a new ImageTextDetectionFeature object with values from keyword arguments. The default value of the
feature_typeattribute of this class isTEXT_DETECTIONand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - feature_type (str) – The value to assign to the feature_type property of this ImageTextDetectionFeature. Allowed values for this property are: “IMAGE_CLASSIFICATION”, “OBJECT_DETECTION”, “TEXT_DETECTION”, “FACE_DETECTION”, “FACE_EMBEDDING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- language (str) – The value to assign to the language property of this ImageTextDetectionFeature. Allowed values for this property are: “ENG”, “CES”, “DAN”, “NLD”, “FIN”, “FRA”, “DEU”, “ELL”, “HUN”, “ITA”, “NOR”, “POL”, “POR”, “RON”, “RUS”, “SLK”, “SPA”, “SWE”, “TUR”, “ARA”, “CHI_SIM”, “HIN”, “JPN”, “KOR”, “OTHERS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
feature_type¶ [Required] Gets the feature_type of this ImageFeature. The type of image analysis requested. The allowed values are: - IMAGE_CLASSIFICATION: Label the image. - OBJECT_DETECTION: Identify objects in the image with bounding boxes. - TEXT_DETECTION: Recognize text at the word and line level. - FACE_DETECTION: Identify faces in the image with bounding boxes and face landmarks. - FACE_EMBEDDING: Extract facial features in image as vectors with information on bounding boxes and face landmarks.
Allowed values for this property are: “IMAGE_CLASSIFICATION”, “OBJECT_DETECTION”, “TEXT_DETECTION”, “FACE_DETECTION”, “FACE_EMBEDDING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The feature_type of this ImageFeature. Return type: str
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
language¶ Gets the language of this ImageTextDetectionFeature. The language of the document image, abbreviated according to ISO 639-2.
Allowed values for this property are: “ENG”, “CES”, “DAN”, “NLD”, “FIN”, “FRA”, “DEU”, “ELL”, “HUN”, “ITA”, “NOR”, “POL”, “POR”, “RON”, “RUS”, “SLK”, “SPA”, “SWE”, “TUR”, “ARA”, “CHI_SIM”, “HIN”, “JPN”, “KOR”, “OTHERS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The language of this ImageTextDetectionFeature. Return type: str
-