identify clear text from image python

前端 未结 1 726
时光取名叫无心
时光取名叫无心 2020-12-22 09:52

i used pytesseract to identify text from image

pytesseract.pytesseract.tesseract_cmd = r\'C:\\Program Files\\Tesseract-OCR\\tesseract.exe\'


        
相关标签:
1条回答
  • 2020-12-22 10:35

    Your can try improving the results by shortening the character set, and only allowing characters that are legal in your particular language (exclude numbers, special characters etc) . This Answer will help.

    Tesseract OCR isn't the best at figuring out characters in a image. Your can try processing the image a bit, in order to improve the results. This will help

    • Make sure the image dpi/ppi is above 250 otherwise the results may be inaccurate.

    I generally prefer this website www.onlineocr.net for doing Optical Character Recognition as the results are almost perfect each time. Your can try using their own API, for doing character recognition (requires internet connectivity to be functional). The Results obtained by using this API, are far superior then from tesseract OCR. So you may give it a try.

    0 讨论(0)
提交回复
热议问题