Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.59 KB

File metadata and controls

46 lines (32 loc) · 1.59 KB

previewOCR

Implementation of OCR tool for Android

To use it you need tess-two library, all information can be found here: https://github.com/rmtheis/tess-two

Main features:

  • simplified camera initalisation
  • picker view for selecting text area from the preview
  • live recognition
  • desired number of last analyzed images can be saved

How it works:

mCameraTool = new CameraTool(this);
mCameraTool.container(mCameraRL)        // ViewGroup that will contain the Preview and Picker views
           .OCRListener(this)           // Listener for OCR results
           .cropListener(this)          // Listener for Picker changes 
           .save(10)                    // Stores last 10 previews on SD-Card
           .source(CameraSource.BACK)   // Defines source camera
           .start();                    // Starts preview and OCR

More here:

Sample Screenshot

alt tag

TODO:

  • Expose Camera object and its options for easy changes
  • Test on different devices
  • Improve landscape mode (for now preview always fits parent view) - it can be stretched now

Credits: (all helpful sources that was used to build that project)