Class: Aws::Rekognition::Types::TextDetection
- Inherits:
-
Struct
- Object
- Struct
- Aws::Rekognition::Types::TextDetection
- Defined in:
- gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb
Overview
Information about a word or line of text detected by DetectText.
The DetectedText
field contains the text that Amazon Rekognition
detected in the image.
Every word and line has an identifier (Id
). Each word belongs to a
line and has a parent identifier (ParentId
) that identifies the line
of text in which the word appears. The word Id
is also an index for
the word within a line of words.
For more information, see Detecting text in the Amazon Rekognition Developer Guide.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#confidence ⇒ Float
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.
-
#detected_text ⇒ String
The word or line of text recognized by Amazon Rekognition.
-
#geometry ⇒ Types::Geometry
The location of the detected text on the image.
-
#id ⇒ Integer
The identifier for the detected text.
-
#parent_id ⇒ Integer
The Parent identifier for the detected text identified by the value of
ID
. -
#type ⇒ String
The type of text that was detected.
Instance Attribute Details
#confidence ⇒ Float
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry points around the detected text.
6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 |
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 6297 class TextDetection < Struct.new( :detected_text, :type, :id, :parent_id, :confidence, :geometry) SENSITIVE = [] include Aws::Structure end |
#detected_text ⇒ String
The word or line of text recognized by Amazon Rekognition.
6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 |
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 6297 class TextDetection < Struct.new( :detected_text, :type, :id, :parent_id, :confidence, :geometry) SENSITIVE = [] include Aws::Structure end |
#geometry ⇒ Types::Geometry
The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.
6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 |
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 6297 class TextDetection < Struct.new( :detected_text, :type, :id, :parent_id, :confidence, :geometry) SENSITIVE = [] include Aws::Structure end |
#id ⇒ Integer
The identifier for the detected text. The identifier is only unique
for a single call to DetectText
.
6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 |
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 6297 class TextDetection < Struct.new( :detected_text, :type, :id, :parent_id, :confidence, :geometry) SENSITIVE = [] include Aws::Structure end |
#parent_id ⇒ Integer
The Parent identifier for the detected text identified by the value
of ID
. If the type of detected text is LINE
, the value of
ParentId
is Null
.
6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 |
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 6297 class TextDetection < Struct.new( :detected_text, :type, :id, :parent_id, :confidence, :geometry) SENSITIVE = [] include Aws::Structure end |
#type ⇒ String
The type of text that was detected.
6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 |
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 6297 class TextDetection < Struct.new( :detected_text, :type, :id, :parent_id, :confidence, :geometry) SENSITIVE = [] include Aws::Structure end |