Preprocessing image for Tesseract OCR with OpenCV

前端 未结 5 662
既然无缘
既然无缘 2020-12-04 06:07

I\'m trying to develop an App that uses Tesseract to recognize text from documents taken by a phone\'s cam. I\'m using OpenCV to preprocess the image for better recognition,

5条回答
  •  悲&欢浪女
    2020-12-04 07:00

    You can play around with the configuration of the OCR by changing the --psm and --oem values, in your case specifically I will suggest using

    --psm 3 --oem 2

    you can also look at the following link for further details here

提交回复
热议问题