Tesseract library problems

Asked by Roger F Borrello Jr

I receive the below error when I try to use "findText":

[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!
[error] script [ login ] stopped with error in line 11
[error] org.sikuli.script.SikuliXception ( org.sikuli.script.SikuliXception: OCR: start: Tesseract library problems: Error looking up function 'TessAltoRendererCreate': /usr/lib/x86_64-linux-gnu/libtesseract.so.4.0.0: undefined symbol: TessAltoRendererCreate )
[error] --- Traceback --- error source first
line: module ( function ) statement
3: main ( waitText ) match = findText(text)
11: main ( <module> ) waitText("User Name:", 10)
[error] --- Traceback --- end --------------

I have the below output running "tesseract -v":
tesseract 4.0.0-beta.1
 leptonica-1.75.3
  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 though I'd might need to build tesseract 4.1, so I downloaded and tried to build. It is complaining about my level of leptonica, even though I have downloaded and built leptonica-1.81.1

Any help would be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Roger F Borrello Jr
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

sorry, but you have to find a solution in the net, to get a tesseract version > 4.0.0 for your system.

Revision history for this message
Roger F Borrello Jr (mydoll) said :
#2

Thank you for the answer. However, the Sikuli documentation mentions that 4.x of tasseract is required. Is this not the case?

Revision history for this message
Roger F Borrello Jr (mydoll) said :
#3

It looks like "sudo apt-get install libleptonica-dev" was required to get the "tesseract" build to proceed. Thanks for a great product! (I'll probably have more questions later :-)

Revision history for this message
RaiMan (raimund-hocke) said :
#4

Ok, thanks for feedback.