img = Image.open('E:/Logo/ara.JPG')
img.load()
text = pytesseract.image_to_string(img, lang = 'ara')
print(text)
为什么运行ara就会报错呢? 英文和中文都没问题。
报错内容:
Message=(3221225477, '')
Source=C:\Users\admin\source\repos\test\recog.py
StackTrace:
File "C:\Users\admin\source\repos\test\recog.py", line 14, in <module>
text = pytesseract.image_to_string(img, lang = 'ara')