improve Tesseract performance with OpenCV on Android

后端 未结 4 1352
小鲜肉
小鲜肉 2021-01-12 16:07

I am working on a Android application using real-time OCR. I using OpenCV and Tesseract Library. But the performance is very poor, even on my Galaxy SIII. There are any meth

4条回答
  •  渐次进展
    2021-01-12 17:13

    Some things that might make it faster are:

    • Select a smaller region from mGray where your text is, before createBitmap - so the more heavy methods that follow process a smaller image.
    • Changing Bitmap.Config.ARGB_8888 to Bitmap.Config.RGB_565 - your image is grayscale, it will not need a ARGB bitmap.

提交回复
热议问题