OCR Recognition
Overview
- The OCR module performs image recognition
- The OCR module object prefix is
ocr, e.g.ocr.initOcr() - Current OCR engines include mlkit, ocrLite, Baidu AI easyedge, paddleOcrNcnnV5, paddleOcrOnnxV4, paddleOcrOnnxV5, paddleOcrOnnxV6, Tesseract, paddleOcrOnline, and Baidu online recognition
- Supports PPOCR-V4, PPOCR-V5, and PPOCR-V6 models (V6 requires Android 8.0/API 26+, default modelTier=small)
- For Tesseract, download the corresponding language packs or create your own
- For versions above 9.17.0, see the Tesseract example [9.17+] section because the API has changed