← Back to team overview

sikuli-driver team mailing list archive

[Question #203129]: Tesseract problem in self compiled Sikuli

 

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

I have exactly the problem described here: https://bugs.launchpad.net/sikuli/+bug/702625 

As soon as I run my compiled sikuli-ide and try to capture an image, Sikuli crashes and the following message appears in the shell: "Unable to load unicharset file /tmp/sikuli/tessdata/eng.unicharset". As described in the Bugreport, the file exists but is empty. 

My tesseract directory is in "/usr/local/share/tessdata" and contains a lot of files like eng.word-dawg, ent.inttemp and so on, and the directories "configs" and "tessconfigs". My tesseract is version 2.04 and I compiled it myself. "make install" creates the directories and files in this directory. 

The path is already set in cmake_moduls/common.cmake:

FIND_PATH(TESSERACT_DATA_DIR confsets 
   "/opt/local/share/tessdata"
   "/usr/local/share/tessdata"
   "/usr/share/tesseract-ocr/tessdata"
   "/usr/share/tesseract/tessdata"
   "/usr/share/tessdata"
   "c:/tesseract-2.04/tessdata"
)

In the linked bugreport, it is suggested to delete "sikuli-script/target/jar/tessdata", I do not have this directory, the whole "/jar/" directory is missing. 

When I compile Sikuli-script, the cmake output looks like this:

Tesseract-OCR Data Path: /usr/local/share/tessdata
-- checking for module 'opencv'
--   found opencv, version 2.1.0
-- Found JNI: /usr/lib/jvm/default-java/jre/lib/i386/libjawt.so 
-- Found SWIG: /usr/local/bin/swig (found version "1.3.40")
-- checking for module 'Tesseract'
--   package 'Tesseract' not found
-- Found Tesseract 
NATIVE_LIBS: VisionProxy;VDictProxy

And later:

Scanning dependencies of target sikuli-script.jar.tessdata-in-jar
[ 65%] Copying Tesseract Data
[ 65%] Built target sikuli-script.jar.tessdata-in-jar

After that, in Sikuli-ide, it looks like this:

Tesseract-OCR Data Path: /usr/local/share/tessdata
-- Found Java: /usr/bin/java (found suitable version "1.6.0.29", required is "1.6")

Do you have any idea what I'm doing wrong and how to fix it?

Thanks in advance

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.