TextBlock class

A text block recognized in an image that consists of a list of text lines.

Constructors

TextBlock({required String text, required List<TextLine> lines, required Rect boundingBox, required List<String> recognizedLanguages, required List<Point<int>> cornerPoints})
Constructor to create an instance of TextBlock.
TextBlock.fromJson(Map json)
Returns an instance of TextBlock from a given json.
factory

Properties

boundingBox Rect
Rect that contains the text block.
final
cornerPoints List<Point<int>>
List of corner points of the text block in clockwise order starting with the top left point relative to the image in the default coordinate space.
final
hashCode int
The hash code for this object.
no setterinherited
lines List<TextLine>
List of text lines that make up the block.
final
recognizedLanguages List<String>
List of recognized languages in the text block. If no languages were recognized, the list is empty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
String representation of the text block that was recognized.
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