Error opening data file F:\Tesseract-OCR\eng.traineddata 解决办法

阅读更多
报错:
D:\Tesseract-OCR\tessdata>tesseract num2.jpg result -l eng
Error opening data file F:\Tesseract-OCR\eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessda
ta" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
Could not initialize tesseract.






1.添加环境变量 TESSDATA_PREFIX  ->  D:\Tesseract-OCR\tessdata  
注:末尾不要加;
2.环境变量path后面追加 D:\Tesseract-OCR;


保存后,重新打开命令提示符窗口,进入图片存放路径,
执行: tesseract num2.jpg result -l eng  即可。

你可能感兴趣的:(ocr,tesseract_ocr)