我在Linux上运行tesseract-ocr引擎时遇到问题。我已经下载了RUS语言数据并将其放入tessdata目录(/ usr / local / share / tessdata)。当我尝试使用command运行tesseract时tesseract blob.jpg out -l rus
,它显示错误:
Error opening data file /usr/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.
根据编译指南,我曾经export TESSDATA_PREFIX='/usr/local/share/'
指向tessdata目录。也许我应该编辑任何配置文件?Tesseract尝试加载“ eng”数据文件而不是“ rus”。