TextRecognizer class
Detector for performing optical character recognition(OCR) on an input image.
A text recognizer is created via textRecognizer()
in GoogleVision:
final GoogleVisionImage image =
GoogleVisionImage.fromFilePath('path/to/file');
final TextRecognizer textRecognizer =
GoogleVision.instance.textRecognizer();
final List<VisionText> recognizedText =
await textRecognizer.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(
GoogleVisionImage visionImage) → Future< VisionText> -
Detects
VisionText
from a GoogleVisionImage. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited