0

Folks,

I'm trying out tesseract library for OCR evaluation.

I'm using Mac OS Yosemite. I've the project setup ready in eclipse, with the libtesseract302.dll in the build path. But when I run the main class, it throws me an error

java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': Native library (win32-x86/libtesseract302.dll) not found in resource path 
.....
.....
net.sourceforge.tess4j.TessAPI.<clinit>(Unknown Source)
net.sourceforge.tess4j.Tesseract.init(Unknown Source)
net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source)
ocrTest.doGet(ocrTest.java:39)

FYI -

I've already performed some tests to fix this issue following the steps as specified here, but it still throws me an error.

Community
  • 1
  • 1
Saurabh Gokhale
  • 53,625
  • 36
  • 139
  • 164

1 Answers1

0

You can't use a windows dll file on Mac OS X. Because your Java project requires native code, you may not be able to run it on a Mac at all. If you can get a libtesseract302.dylib (Mach-O Dynamic Library) then you could add that and it should work.

Elliott Frisch
  • 198,278
  • 20
  • 158
  • 249