sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11742
Re: [Question #203129]: Tesseract problem in self compiled Sikuli
Question #203129 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203129
Status: Open => Answered
RaiMan proposed the following answer:
Looking into the code again, there are 3 steps during the initialization
phase:
Step1: copying the tessdata directory from inside the jar to the Java
tempdir (path: System.getProperty("java.io.tmpdir") + "/sikuli/"+
"tessdata") (in TextRecognizer.java at init())
Step2: set the environment variable TESSDATA_PREFIX to this path
Step3: initialize Tesseract with:
TessBaseAPI::InitWithLanguage(datapath,outputbase,lang,NULL,numeric_mode,0,0);
where data path contains the above TESSDATA_PREFIX
BTW: this path is additionally saved at Settings.OcrDataPath during
step1
The mentioned error happens in step3 inside Tesseract.
So I guess, that one of these steps generate inconsistent results, that are not checked by Sikuli code.
I have to leave now ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.