possibly an invalid tessdata path: E:\Python36\/tessdata/
tessdata
训练模型基于‘最佳’LSTM模型的一个快速变体以及遗留模型。
项目地址:https://gitcode.com/gh_mirrors/te/tessdata

·
import tesserocr
from PIL import Image
file_path = ‘’
image = Image.open(file_path)
txt = tesserocr.image_to_text(image)
print(txt)
pycharm报错:tesserocrpossibly an invalid tessdata path: E:\Python36/tessdata/
原来是在之前安装时没有将 C:\Program Files\Tesseract-OCR中的tessdata复制一份到python解释器文件中,放入与Lib同级目录中造成的,复制一下就行。




训练模型基于‘最佳’LSTM模型的一个快速变体以及遗留模型。
最近提交(Master分支:25 天前 )
ced78752
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 年前
4767ea92
This was already fixed in commit 71689a2a0157344ce09fe380f81a6777c22f4852,
but introduced again in commit d87b3cbc75555bd3282e0cadab5e159e2d468396.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
4 年前
更多推荐
所有评论(0)