| java.lang.Object | ||
| ↳ | com.google.android.gms.vision.Detector<com.google.android.gms.vision.text.TextBlock> | |
| ↳ | com.google.android.gms.vision.text.TextRecognizer | |
Finds and recognizes text in a supplied Frame.
Build new TextRecognizer instances using TextRecognizer.Builder.
Recognition results are returned by detect(Frame). The OCR algorithm tries
to infer the text layout and organizes each paragraph into TextBlock instances. If any
text is detected, at least one TextBlock instance will be returned.
Adding the ocr functionality
dependency to your project's AndroidManifest.xml will indicate to the installer that
it should download the dependency on application install.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TextRecognizer.Builder | TextRecognizer Builder. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Detects and recognizes text in a image.
| |||||||||||
Indicates whether the detector has all of the required dependencies available locally in
order to do detection.
| |||||||||||
Shuts down the detector, releasing any underlying resources.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.android.gms.vision.Detector
| |||||||||||
From class
java.lang.Object
| |||||||||||
Indicates whether the detector has all of the required dependencies available locally in order to do detection.
When an app is first installed, it may be necessary to download required files. If this returns false, those files are not yet available. Usually this download is taken care of at application install time, but this is not guaranteed. In some cases the download may have been delayed.
If your code has added a processor, an indication of the detector operational state is also
indicated with the
detectorIsOperational() method.
You can check this in your app as it processes detection results, and can convey this state
to the user if appropriate.
Shuts down the detector, releasing any underlying resources.