Pytesseract No such file or directory error

前端 未结 4 995
遇见更好的自我
遇见更好的自我 2021-01-18 22:46

First of all I did everything mentioned here pytesseract-no such file or directory error

Still doesn\'t work. Now I\'m using Pycharm IDE with following code:

<
4条回答
  •  甜味超标
    2021-01-18 23:22

    I solved my own question.

    im = Image.open('test.png')
    print pytesseract.image_to_string(im)
    

    It's still unclear why it works when a reference is passed but not directly when I try to open image inside the parameter.

提交回复
热议问题