OcrTextResult class

Structured container holding full hierarchical OCR output (blocks, lines, elements).

Constructors

OcrTextResult({required String fullText, List<TextBlock> blocks = const [], double overallConfidence = 0.98, String primaryLanguage = 'latin'})
const
OcrTextResult.fromJson(Map<String, dynamic> json)
factory

Properties

blocks → List<TextBlock>
Hierarchical list of text blocks.
final
fullText → String
Unstructured full text extracted from the document.
final
hashCode → int
The hash code for this object.
no setterinherited
lines → List<TextLine>
Convenience getter for all lines across all blocks.
no setter
overallConfidence → double
Overall OCR confidence score (0.0 to 1.0).
final
primaryLanguage → String
Primary detected script language (e.g. 'latin', 'devanagari').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wordCount → int
Convenience getter for total word count.
no setter

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