← Back to team overview

sikuli-driver team mailing list archive

[Question #680135]: [1.1.4] Windows 10: OCR doesn't work, .text() either returns nothing or throws an error

 

New question #680135 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680135

Hello,

I have a script I've devloped on macOS, which works great.

I have since tried to port the script to Windows 10. I downloaded the 1.1.4 SikuliX jar as well as jython on that system.

Everything seemed to work until the script ran into .text(). There, it would throw the following error:

at com.sun.jna.Native.open(Native Method)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:288)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427)
at com.sun.jna.Native.register(Native.java:1647)
at com.sun.jna.Native.register(Native.java:1360)
at net.sourceforge.tess4j.TessAPI1.<clinit>(TessAPI1.java:41)
at org.sikuli.script.TextRecognizer.start(TextRecognizer.java:92)
at org.sikuli.script.TextRecognizer.doOCR(TextRecognizer.java:243)
at org.sikuli.script.TextRecognizer.doOCR(TextRecognizer.java:238)
at org.sikuli.script.Region.text(Region.java:4976)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.

DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: unable to load library.

As far as I can tell, tess4j doesn't seem to be properly installed.

So far, I've tried the following:

1. Installing a few different versions of the JRE (now on 8u202).
2. Installing Tesseract.
3. Downloading tess4j and adding the contents of "tessdata" to the appropriate AppData directory.

Not exactly sure what to do next.. any help would be greatly appreciated!

I also would like to take the opportunity to thank you for the continued development of such a useful piece of software!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.