I have recently installed the Tesseract module and found some tutorials, but there was not any solution on the internet which I comfronted. Here are the simple codes and the error:
from PIL import Image
from tesseract import image_to_string
a = Image.open('/Users/bob/Desktop/108.jpg')
b = image_to_string(a)
print(b)
Here is the error:
print 'Creating user config file: {}'.format(_config_file_usr)
^
SyntaxError: invalid syntax
Here is the image: 108.png