TextRecognizer class

Detector for performing optical character recognition(OCR) on an input image.

A text recognizer is created via textRecognizer() in FirebaseVision:

final FirebaseVisionImage image =
    FirebaseVisionImage.fromFilePath('path/to/file');

final TextRecognizer textRecognizer =
    FirebaseVision.instance.textRecognizer();

final List<VisionText> recognizedText =
    await textRecognizer.processImage(image);

Properties

hashCode int
The hash code for this object.
no setterinherited
modelType ModelType
final
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<VisionText>
Detects VisionText from a FirebaseVisionImage.
toString() String
A string representation of this object.
inherited

Operators

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