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:
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.