how to get character position in pytesseract

前端 未结 3 1319
遥遥无期
遥遥无期 2020-12-20 17:26

I am trying to get character position of image files using pytesseract library .

import pytesseract
from PIL import Image
print pytesseract.image_to_string(I         


        
3条回答
  •  天涯浪人
    2020-12-20 18:17

    Using pytesseract doesn't seem the best idea to have the position but you can do this :

    from pytesseract import pytesseract
    pytesseract.run_tesseract('image.png', 'output', lang=None, boxes=False, config="hocr")
    

提交回复
热议问题