please help me solve this problem ~
When using pytesseract, I got the following error:
Traceback (most recent call last):
File "E:/pycharm/PycharmProjects/spider/test/test_orc.py", line 12, in <module>
vcode = pytesseract.image_to_string(image)
File "E:\pycharm\PycharmProjects\spider\test\pytesseract.py", line 169, in image_to_string
raise TesseractError(status, errors)
pytesseract.TesseractError: (1, '\xcf\xb5\xcd\xb3\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc2\xb7\xbe\xb6\xa1\xa3')
I use pip to install pillows and pytesseract. I also install tesseract-ocr-setup-3.02.02.exe in C: \ Program Files (x86) \ Tesseract-OCR, the path is fine
My code is:
import pytesseract
from PIL import Image
image = Image.open('vcode.png')
vcode = pytesseract.image_to_string(image)
print vcode
Many thanks
source
share