Line¶
- class oci.ai_vision.models.Line(**kwargs)¶
Bases:
objectThe line of text.
Methods:
__init__(**kwargs)Initializes a new Line object with values from keyword arguments.
Attributes:
[Required] Gets the bounding_polygon of this Line.
[Required] Gets the confidence of this Line.
[Required] Gets the text of this Line.
[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.
- property bounding_polygon¶
[Required] Gets the bounding_polygon of this Line.
- Returns
The bounding_polygon of this Line.
- Return type
- property confidence¶
[Required] Gets the confidence of this Line. The confidence score between 0 and 1.
- Returns
The confidence of this Line.
- Return type
float
- property text¶
[Required] Gets the text of this Line. The text recognized.
- Returns
The text of this Line.
- Return type
str
- property 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]