Add the ability to read text from photos or screenshots inside an Android app.
Scan a business card or printed form with a phone camera and extract the text programmatically.
Use the eyes-two module to detect whether a captured image is too blurry before running OCR on it.
Requires downloading separate Tesseract language data files and placing them in a tessdata folder on the device, project is deprecated so use Tesseract4Android for new projects.
Tess-two is an Android library that adds text recognition from images (called OCR, or optical character recognition) to Android applications. OCR is the process of reading printed or handwritten text out of photos or screenshots. This library packages Tesseract (a widely-used OCR engine) and Leptonica (an image processing library) as compiled C code that runs on Android devices, and provides a Java API so app developers can call those functions from their app code. The project is no longer maintained, and the author recommends looking at active community forks such as Tesseract4Android if you need a current version. When the project was active, using it in an Android app was straightforward: developers added one dependency line to the app's build.gradle configuration file, pointing to the published package. To recognize text in a particular language, the app also needed a trained language data file downloaded separately and placed in a folder named tessdata on the device. The repository includes three modules. The tess-two module is the core library containing the compiled Tesseract and Leptonica code plus the Java wrapper. The eyes-two module adds extra image processing functions taken from the Google Eyes Free project, including text detection, blur detection, optical flow detection, and image thresholding. The tess-two-test module contains unit tests. Eyes-two is optional and not required for basic OCR. The project was licensed under the Apache 2.0 license and supported Android 2.3 and above with Tesseract version 3.05.
← rmtheis on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.