Tesseract 无法加载任何语言

Tesseract 无法加载任何语言

运行tesseract makebox命令时出现以下错误

Error opening data file /opt/local/share/tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language 'eng' Tesseract couldn't load any languages! Could not initialize tesseract.

我使用的命令

tesseract eng.HighwayGothic.exp0.tif eng.HighwayGothic.exp0 batch.nochop makebox

使用以下方式生成的链接 Tif 文件GhostScript-https://dl.dropboxusercontent.com/u/97646145/Issue/Onepage_TIFF.zip

当我访问 path 的 tessdata 文件夹时/opt/local/share/tessdata/,没有任何训练数据。我猜,这就是我们加载语言的方式

brew install tesseract --all-languages

相关内容