運行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
當我存取路徑的資料夾tessdata時/opt/local/share/tessdata/
,沒有任何trainneddata。我想,這就是我們載入語言的方式
brew install tesseract --all-languages