Tesseract does not recognize single characters

后端 未结 4 598
夕颜
夕颜 2020-12-06 10:26

How to represent:

  1. Create new image with paint (any size)
  2. Add letter A to this image
  3. Try to recognize -> tesseract will not find any letters
4条回答
  •  悲哀的现实
    2020-12-06 10:38

    Have you seen this?

    https://code.google.com/p/tesseract-ocr/issues/detail?id=581

    The bug list shows it as "no longer an issue".

    • Be sure to have high resolution images.
    • If you are resizing the image, be sure to keep a high DPI and don't resize too small
    • Be sure to train your tesseract system
    • use the baseApi.setVariable("tessedit_char_whitelist", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"); code before the init Tesseract
    • Also, you may look into which font to use with OCR

提交回复
热议问题