Tesseract MacOS Error opening data file ./tessdata/eng.traineddata

时光怂恿深爱的人放手 提交于 2019-12-06 07:58:29

TESSDATA_PREFIX should be set to the parent directory of tessdata, i.e., /usr/local/Cellar/tesseract/3.04.00/share/.

This problem is resolved by setting the path programmatically using the method instance.setDatapath(parentPath);

You might see a pop "The last time you opened java, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?", click "Reopen" and it will never appear again.

All my tests are running perfectly fine now.

m3nda

For those having problems with path on Tesseract (wich is likely to happen) i've see that usually you can pass the path of tessdata as first parameter on the instance.

On others you can programatically set it before.

Case of Python and Tesserwrap i just did: https://stackoverflow.com/a/38821791/2480481

I know that's MacOS, but the key of the answer is "put the path at the instance and pray", it worked for me.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!