So I am working on this project and I need to use tess4J inorder to read some text on some images. Unfortunatly i can not seem to resolve the following error:
Error opening data file C:\Users\****\eclipse workspace\****\tessdata\eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language 'eng' Tesseract couldn't load any languages!
The path for the tessdata folder is given using instance.setDatapath("C:\\\\Users\\\\****\\\\eclipse workspace\\\\****\\\\tessdata\\\\")
Where instance is ITesseract instance = new Tesseract();
Any help to resolve this issue is appreciated.
Thank you
Make sure your eng.traineddata
file is not corrupted and of the correct version. If it is for Tesseract 4.0, use either fast or best.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.