Line¶
-
class
oci.ai_vision.models.
Line
(**kwargs)¶ Bases:
object
The line of text.
Methods
__init__
(**kwargs)Initializes a new Line object with values from keyword arguments. Attributes
bounding_polygon
[Required] Gets the bounding_polygon of this Line. confidence
[Required] Gets the confidence of this Line. text
[Required] Gets the text of this Line. word_indexes
[Required] Gets the word_indexes of this Line. -
__init__
(**kwargs)¶ Initializes a new Line object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - text (str) – The value to assign to the text property of this Line.
- confidence (float) – The value to assign to the confidence property of this Line.
- bounding_polygon (oci.ai_vision.models.BoundingPolygon) – The value to assign to the bounding_polygon property of this Line.
- word_indexes (list[int]) – The value to assign to the word_indexes property of this Line.
-
bounding_polygon
¶ [Required] Gets the bounding_polygon of this Line.
Returns: The bounding_polygon of this Line. Return type: oci.ai_vision.models.BoundingPolygon
-
confidence
¶ [Required] Gets the confidence of this Line. The confidence score between 0 and 1.
Returns: The confidence of this Line. Return type: float
-
text
¶ [Required] Gets the text of this Line. The text recognized.
Returns: The text of this Line. Return type: str
-
word_indexes
¶ [Required] Gets the word_indexes of this Line. The array of words.
Returns: The word_indexes of this Line. Return type: list[int]
-