TextDetection class
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.
Constructors
- TextDetection({double? confidence, String? detectedText, Geometry? geometry, int? id, int? parentId, TextTypes? type})
-
TextDetection.fromJson(Map<
String, dynamic> json) -
factory
Properties
- confidence → double?
-
The confidence that Amazon Rekognition has in the accuracy of the detected
text and the accuracy of the geometry points around the detected text.
final
- detectedText → String?
-
The word or line of text recognized by Amazon Rekognition.
final
- geometry → 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.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
The identifier for the detected text. The identifier is only unique for a
single call to
DetectText
.final - parentId → int?
-
The Parent identifier for the detected text identified by the value of
ID
. If the type of detected text isLINE
, the value ofParentId
isNull
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TextTypes?
-
The type of text that was detected.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited