CodeBreaker
CodeBreaker

Reputation: 162

Tess4j (tesseract.getWords() stopped working after new Windows installation

I am working on a java project and part of it is reading Text from pdf files. I programmed that part months ago and it has worked since then. Last week my Windows Installation broke after an update and I reinstalled it. Now Tess4j seems to not work anymore. It neither works on jar files I exported of older versions of my programm nor when I launch the newes version from the IDE (Intellij)

Here is the part of the code, which stopped working. It simply hangs on .getWords():

Tesseract tesseract = new Tesseract();
tesseract.setDatapath(pathToTrainingData);
tesseract.setLanguage("deu");
tesseract.setTessVariable("user_defined_dpi", "100");
words = tesseract.getWords(img, ITessAPI.TessPageIteratorLevel.RIL_WORD);

What could be the reason for that?

Upvotes: 0

Views: 260

Answers (0)

Related Questions