TextAnnotation class

TextAnnotation contains a structured representation of OCR extracted text.

The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own properties. Properties describe detected languages, breaks etc.. Please refer to the TextAnnotation.TextProperty message definition below for more detail.

Constructors

TextAnnotation({List<Page>? pages, String? text})
TextAnnotation.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
pages List<Page>?
List of pages detected by OCR.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
UTF-8 text detected on the pages.
getter/setter pair

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited