How to extract decimal in image with Pytesseract

前端 未结 3 1557
半阙折子戏
半阙折子戏 2021-01-06 11:21

Above is the image ,I have tried everything I could get from SO or google ,nothing seems to work. I can not get the exact value in image , I should get 2.10 , Inste

3条回答
  •  独厮守ぢ
    2021-01-06 11:58

    I was able to increase the number of correct decimals by using the methods mentioned in the other answers. Yet, a small share of the decimals were not recognized correctly.

    The solution I found was to change the language setting for pytesseract.

    I was using a non-English setting, but changing the config to lang='eng' fixed all remaining issues.

    Not sure what the reason is, but with the new LSTM engine for Tesseract, the training data is probably mostly English.

提交回复
热议问题