After face detection and barcode scanning, let's build an application to recognize text from the input images or camera feed. This method is called Optical Character Recognition (OCR). Text recognition supports both on-device recognition as well as cloud-based recognition.
Text recognition
On-device text recognition
Let's skip the default methods that we use for face detection and barcode scanning.
After creating the FirebaseVisionImage object, we will create the detector instance where we will pass on the VisionImage object shown as follows, similar to what we have done before on face detection and barcode scanning:
FirebaseVisionTextDetector detector = FirebaseVision.getInstance...