Binarize Image in Android

后端 未结 7 1026
耶瑟儿~
耶瑟儿~ 2020-12-17 03:11

I am developing android app that uses tesseract OCR to scan a text from image,
I heard that binarizing image before performing OCR on it will give better result,
So

7条回答
  •  被撕碎了的回忆
    2020-12-17 04:09

    You can take a look at the simple approach that Barcode Scanner uses on Android to convert an image to luminance and then to black and white. It would probably work well for OCR.

    https://code.google.com/p/zxing/source/browse/trunk/core/src/com/google/zxing/common/HybridBinarizer.java https://code.google.com/p/zxing/source/browse/trunk/core/src/com/google/zxing/PlanarYUVLuminanceSource.java

提交回复
热议问题