Tesseract does not recognize single characters

后端 未结 4 593
夕颜
夕颜 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:41

    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);
    

提交回复
热议问题