TextSymbol class

A text symbol recognized in an image. Represents a single symbol in an TextElement.

Constructors

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

Properties

angle double?
final
boundingBox Rect
Rect that contains the text symbol.
final
confidence double?
final
cornerPoints List<Point<int>>
List of corner points of the text symbol 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 symbol. 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 symbol 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