TextElement class

A text element recognized in an image. A text element is roughly equivalent to a space-separated word in most languages.

Constructors

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

Properties

angle double?
final
boundingBox Rect
Rect that contains the text element.
final
confidence double?
final
cornerPoints List<Point<int>>
List of corner points of the text element 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
recognizedLanguages List<String>
List of recognized languages in the text element. If no languages were recognized, the list is empty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbols List<TextSymbol>
List of text elements that make up the line.
final
text String
String representation of the text element 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