ImageTextDetectionFeature

class oci.ai_vision.models.ImageTextDetectionFeature(**kwargs)

Bases: ImageFeature

The text detection parameters.

Attributes:

FEATURE_TYPE_FACE_DETECTION

A constant which can be used with the feature_type property of a ImageFeature.

FEATURE_TYPE_FACE_EMBEDDING

A constant which can be used with the feature_type property of a ImageFeature.

FEATURE_TYPE_IMAGE_CLASSIFICATION

A constant which can be used with the feature_type property of a ImageFeature.

FEATURE_TYPE_OBJECT_DETECTION

A constant which can be used with the feature_type property of a ImageFeature.

FEATURE_TYPE_TEXT_DETECTION

A constant which can be used with the feature_type property of a ImageFeature.

LANGUAGE_ARA

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_CES

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_CHI_SIM

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_DAN

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_DEU

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_ELL

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_ENG

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_FIN

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_FRA

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_HIN

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_HUN

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_ITA

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_JPN

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_KOR

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_NLD

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_NOR

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_OTHERS

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_POL

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_POR

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_RON

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_RUS

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_SLK

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_SPA

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_SWE

A constant which can be used with the language property of a ImageTextDetectionFeature.

LANGUAGE_TUR

A constant which can be used with the language property of a ImageTextDetectionFeature.

feature_type

[Required] Gets the feature_type of this ImageFeature.

language

Gets 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'

A constant which can be used with the feature_type property of a ImageFeature. This constant has a value of “FACE_DETECTION”

FEATURE_TYPE_FACE_EMBEDDING = 'FACE_EMBEDDING'

A constant which can be used with the feature_type property of a ImageFeature. This constant has a value of “FACE_EMBEDDING”

FEATURE_TYPE_IMAGE_CLASSIFICATION = 'IMAGE_CLASSIFICATION'

A constant which can be used with the feature_type property of a ImageFeature. This constant has a value of “IMAGE_CLASSIFICATION”

FEATURE_TYPE_OBJECT_DETECTION = 'OBJECT_DETECTION'

A constant which can be used with the feature_type property of a ImageFeature. This constant has a value of “OBJECT_DETECTION”

FEATURE_TYPE_TEXT_DETECTION = 'TEXT_DETECTION'

A constant which can be used with the feature_type property of a ImageFeature. This constant has a value of “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_type attribute of this class is TEXT_DETECTION and 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’.

property 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.

property 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