Binarize image before OCR scan

本小妞迷上赌 提交于 2019-12-10 19:25:28

问题


I have an name card scanner app to help in create new contacts which follows the following steps:

  1. User take a picture
  2. User crop the picture
  3. System shows user cropped image to confirm the crop
  4. System retrieve cropped picture and run OCR
  5. System takes OCR results and populate into the contacts fields (eg, Name, Phone number, Address, etc)
  6. User can edit and save contact.

However. now I hope to increase the accuracy of the OCR process to produce better results for the OCR scan.

I have heard of this process which binarize the image and makes it more accurate for the OCR scan.

I am trying to to send my image into this new process in step 3, where system shows user cropped and already binarised image to confirm crop.

After some research, I have found several methods like TextCleaner, ImageMagick and several others. However, I cannot find an implementation on Android. This closest I got is from this link: Binarize Image in Android

However I cannot make the answers from that question work in my codes. I am currently using Android Studio 1.5.1.

My codes are gathered from this link: https://github.com/TheWall89/AndrOCR

来源:https://stackoverflow.com/questions/35568362/binarize-image-before-ocr-scan

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!