Text recognition is the process of detecting text in images and video streams and recognizing the text contained therein. Once detected, the recognizer then determines the actual text in each block and segments it into lines and words. The Text API detects text in Latin based languages (French, German, English, etc.), in real-time, on device.
- Image Cropper
Powerful (Zoom, Rotation, Multi-Source), customizable (Shape, Limits, Style), optimized (Async, Sampling, Matrix) and simple image cropping library for Android.
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
- Vision-Api
implementation 'com.google.android.gms:play-services-vision:20.1.0'
Opening Screen | Choose the source of image | Crop the required Part | Output |
The Text Recognizer segments text into blocks, lines, and words. Roughly speaking:
-
a Block is a contiguous set of text lines, such as a paragraph or column,
-
a Line is a contiguous set of words on the same vertical axis, and
-
a Word is a contiguous set of alphanumeric characters on the same vertical axis.
The image below highlights examples of each of these in descending order. The first highlighted block, in cyan, is a Block of text. The second set of highlighted blocks, in blue, are Lines of text. Finally, the third set of highlighted blocks, in dark blue, are Words.
<> Open your terminal (NOTE: git bash prefered/ Terminal on Android Studio/Any Other Editor)
<> Run the git clone command and clone this repo.
<> Navigate to the project folder where you have cloned the repo.
<> Sync the project.
<> Open an emulator or plug in a real device
<> Run the App
Pull request are most welcomed, Add proper documentation to the part you contribute, Give me some time to review pull request Thank you.
This project is licensed under the MIT License - see the LICENSE.md file for details
To get started read the Android developers documentation