Word class
A word representation.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
Word({required TextProperty? property, required BoundingPoly? boundingBox, required List<
Symbol> ? symbols, required double? confidence}) -
Word.fromJson(Map<
String, dynamic> json) -
factory
Properties
- boundingBox → BoundingPoly?
-
The bounding box for the word. The vertices are in the order of top-left,
top-right, bottom-right, bottom-left. When a rotation of the bounding box
is detected the rotation is represented as around the top-left corner as
defined when the text is read in the 'natural' orientation. For example:
final
- confidence → double?
-
Confidence of the OCR results for the word. Range [0, 1].
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- property → TextProperty?
-
Additional information detected for the word.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
symbols
→ List<
Symbol> ? -
List of symbols in the word. The order of the symbols follows the natural
reading order.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited