DocumentTextRecognizer class
Detector for performing optical character recognition(OCR) on an input image.
In comparison to TextRecognizer, it detects dense document text.
A document text recognizer is created via cloudDocumentTextRecognizer()
in FirebaseVision:
final FirebaseVisionImage image =
FirebaseVisionImage.fromFilePath('path/to/file');
final DocumentTextRecognizer documentTextRecognizer =
FirebaseVision.instance.cloudDocumentTextRecognizer();
final List<VisionDocumentText> recognizedText =
await documentTextRecognizer.processImage(image);
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Releases resources used by this recognizer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processImage(
FirebaseVisionImage visionImage) → Future< VisionDocumentText> -
Detects
VisionDocumentText
from a FirebaseVisionImage. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited