OCR does not install on ubuntu 18.04

Asked by jerome on 2020-04-06

When I try to use text() on a region in ubuntu 18.04 I get the following error...

[error] see: https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-libraries-for-Tess4J-Tesseract-4-OCR
[error] Save your work, correct the problem and restart the IDE!

tesseract - v gives me

tesseract 4.0.0-beta.1
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0

 Found AVX2
 Found AVX
 Found SSE

I notice that I had not run ldconfig however on doing so I get this error

[error] java.lang.NoClassDefFoundError ( java.lang.NoClassDefFoundError: Could not initialize class net.sourceforge.tess4j.Tesseract1 )

I have downloaded tess4j but it isn't clear what if any the manual step is to make it available to jython/sikuli-ide

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

tess4j is not the problem. It is bundled with SikuliX.

The problem comes from the tesseract library.

As mentioned in the link, tesseract 4.0.0 does not work, it must be a version 4.1.x.

At the link there is an example, that was tested, to get a version 4.1.0

Can you help with this problem?

Provide an answer of your own, or ask jerome for more information if necessary.

To post a message you must log in.