TextLine class

Represents a single line of text detected by OCR.

Constructors

TextLine({required String text, List<TextElement> elements = const [], Rect? boundingBox, double confidence = 1.0, String? recognizedLanguage})
const
TextLine.fromJson(Map<String, dynamic> json)
factory

Properties

boundingBox Rect?
Bounding box rectangle in image pixel coordinates.
final
confidence double
Detection confidence score (0.0 to 1.0).
final
elements List<TextElement>
List of word elements contained within this line.
final
hashCode int
The hash code for this object.
no setterinherited
recognizedLanguage String?
Recognized language BCP-47 tag.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The raw text string of the line.
final

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

Operators

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