ValueNumber¶
-
class
oci.ai_vision.models.ValueNumber(**kwargs)¶ Bases:
oci.ai_vision.models.field_value.FieldValueThe floating point number field value.
Attributes
VALUE_TYPE_ARRAYstr(object=’’) -> str VALUE_TYPE_DATEstr(object=’’) -> str VALUE_TYPE_INTEGERstr(object=’’) -> str VALUE_TYPE_NUMBERstr(object=’’) -> str VALUE_TYPE_PHONE_NUMBERstr(object=’’) -> str VALUE_TYPE_STRINGstr(object=’’) -> str VALUE_TYPE_TIMEstr(object=’’) -> str bounding_polygon[Required] Gets the bounding_polygon of this FieldValue. confidence[Required] Gets the confidence of this FieldValue. textGets the text of this FieldValue. value[Required] Gets the value of this ValueNumber. value_type[Required] Gets the value_type of this FieldValue. word_indexes[Required] Gets the word_indexes of this FieldValue. Methods
__init__(**kwargs)Initializes a new ValueNumber 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. -
VALUE_TYPE_ARRAY= 'ARRAY'¶
-
VALUE_TYPE_DATE= 'DATE'¶
-
VALUE_TYPE_INTEGER= 'INTEGER'¶
-
VALUE_TYPE_NUMBER= 'NUMBER'¶
-
VALUE_TYPE_PHONE_NUMBER= 'PHONE_NUMBER'¶
-
VALUE_TYPE_STRING= 'STRING'¶
-
VALUE_TYPE_TIME= 'TIME'¶
-
__init__(**kwargs)¶ Initializes a new ValueNumber object with values from keyword arguments. The default value of the
value_typeattribute of this class isNUMBERand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - value_type (str) – The value to assign to the value_type property of this ValueNumber. Allowed values for this property are: “STRING”, “DATE”, “TIME”, “PHONE_NUMBER”, “NUMBER”, “INTEGER”, “ARRAY”
- text (str) – The value to assign to the text property of this ValueNumber.
- confidence (float) – The value to assign to the confidence property of this ValueNumber.
- bounding_polygon (oci.ai_vision.models.BoundingPolygon) – The value to assign to the bounding_polygon property of this ValueNumber.
- word_indexes (list[int]) – The value to assign to the word_indexes property of this ValueNumber.
- value (float) – The value to assign to the value property of this ValueNumber.
-
bounding_polygon¶ [Required] Gets the bounding_polygon of this FieldValue.
Returns: The bounding_polygon of this FieldValue. Return type: oci.ai_vision.models.BoundingPolygon
-
confidence¶ [Required] Gets the confidence of this FieldValue. The confidence score between 0 and 1.
Returns: The confidence of this FieldValue. Return type: float
-
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.
-
text¶ Gets the text of this FieldValue. The detected text of a field.
Returns: The text of this FieldValue. Return type: str
-
value¶ [Required] Gets the value of this ValueNumber. The number value.
Returns: The value of this ValueNumber. Return type: float
-
value_type¶ [Required] Gets the value_type of this FieldValue. The type of data detected.
Allowed values for this property are: “STRING”, “DATE”, “TIME”, “PHONE_NUMBER”, “NUMBER”, “INTEGER”, “ARRAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The value_type of this FieldValue. Return type: str
-
word_indexes¶ [Required] Gets the word_indexes of this FieldValue. The indexes of the words in the field value.
Returns: The word_indexes of this FieldValue. Return type: list[int]
-