python_OCR模块:RuntimeError: Failed to init API, possibly an invalid tessdata 报错

1.除了安装Tesseract和pip install tesserocr pillow外,还需要如下 2.需要将Tesseract-OCR目录配置到环境变量中 3.需要将Tesseract-OCR目录下的tessdata目录配置到环境变量中 4.开始验证 import tesserocr print(tesserocr.file_to_text("c:\image.jpg")) 转载于:http
相关文章
相关标签/搜索