赞
踩
1 import tesserocr
2 from PIL import Image
3 image=Image.open(‘image.jpg‘)
4 print(tesserocr.image_to_text(image))
Traceback (most recent call last):
File "C:/Users/stromztt/PycharmProjects/python_spider/test.py", line 35, in <module>
print(tesserocr.image_to_text(image))
File "tesserocr.pyx", line 2443, in tesserocr._tesserocr.image_to_text
RuntimeError: Failed to init API, possibly an invalid tessdata path: C:\Users\stromztt\PycharmProjects\python_spider\venv\Scripts\/tessdata/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。