Skip to content

Debanshu777/Text-Recognition

Repository files navigation

Text-Recognition 📷

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.

Dependencies

  • 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'
    

Screenshots

Opening Screen Choose the source of image Crop the required Part Output

Text Structure

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.

How To Run This

<> 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

Contributing

Feel Free To Contribute

Pull request are most welcomed, Add proper documentation to the part you contribute, Give me some time to review pull request Thank you.

Developed And Maintained by

😎Debanshu777

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Getting Started

To get started read the Android developers documentation

Releases

No releases published

Packages

No packages published

Languages