我正在python中使用tesserocr
来识别简单图像中的单词,但是我无法解决问题:
File "tesserocr.pyx", line 2443, in tesserocr._tesserocr.image_to_text
RuntimeError: Failed to init API, possibly an invalid tessdata path: C:\Program Files (x86)\Tesseract-OCR/
tessdata
文件夹复制到了python36
文件夹中。仍然错误。import tesserocr
from PIL import Image
cropimage = Image.open('C:/Users/15752/Desktop/cropimage.png')
print(tesserocr.image_to_text(cropimage))