I am using tess4j, a Tesseract java wrapper. I also have the usual Tesseract installed. I'm not quite sure how tess4j is designed to work, but since it comes with the tessdata folder, I can assume that you will place language data files there. However, tess4j only works if the language data files are in the "real" tessdata folder (the one that comes with tesseract, not tess4j). If I delete this folder, I will get this error message:
Error opening data file C:\Program Files\Tesseract-OCR\tessdata/jpn.trained data Please make sure the TESSDATA_PREFIX environment variable is set to the par ent directory of your "tessdata" directory. Failed loading language 'jpn' Tesseract couldn't load any languages!
Does this mean that I need to install Tesseract to use tess4j? What for? Or maby, my tess4j tessdata folder is in the wrong place (this is currently related to my .java files, tess4j bans are in the lib folder to which I set the class path).
java tesseract
Kiwi bird
source share