ocrtesseract

Tesseract does not recognize single characters


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. Copy-paste this letter 5-6 times to this image
  5. Try to recognize -> tesseract will find all the letters

Why?


Solution

  • You must set the "page segmentation mode" to "single char".

    For example, in Android you do the following:

    api.setPageSegMode(TessBaseAPI.pageSegMode.PSM_SINGLE_CHAR);