TextLine class

A text line recognized in an image that consists of a list of elements.

Constructors

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

Properties

angle double?
final
boundingBox Rect
Rect that contains the text line.
final
confidence double?
final
cornerPoints List<Point<int>>
The corner points of the text line in clockwise order starting with the top left point relative to the image in the default coordinate space.
final
elements List<TextElement>
List of text elements that make up the line.
final
hashCode int
The hash code for this object.
no setterinherited
recognizedLanguages List<String>
List of recognized languages in the text line. 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 line 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