CountOlaf
CountOlaf

Reputation: 1

Tessarect implementation JAVA

I'm trying to implement OCR recognition through Tessarect. But at the moment I'm stuck with this error. This is what I've done so far:

But when I compile my code this is the error

Error opening data file D:/Tess4J/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! Warning: Invalid resolution 0 dpi. Using 70 instead.

I've downloaded the eng trained data and I've tried different stuff but I can't figure out how to solve this.

I'm running eclipse in macOS Catalina.

Thanks!

My situation

Upvotes: 0

Views: 347

Answers (1)

dharjeezy
dharjeezy

Reputation: 111

Set your datapath correctly. Your location D:/Tess4J/tessdata/eng.traineddata is wrong

Upvotes: 0

Related Questions