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