sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21393
[Bug 1214589] Re: [1.0.1] tessdata folder not found after setup with option 5 --- workaround
when asking questions in comments, you should subscribe to the question to get notified.
I have done this for you this time.
But it is nearly always a better, to start your own question.
--- your question
The OCR and text search feature in Sikuli still is weak, especially with smaller fonts or text on not-plain backgrounds.
So before starting complex things with it, you should test, wether it works in your situation.
easy test:
print selectRegion().text()
you simply select a specific region containing the text (the file name)
in your case and look what Sikuli reads.
If it works, the you have to find an approach with find(text), that works.
Restricting the region as small as possible is always a good idea in any case of finding something.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1214589
Title:
[1.0.1] tessdata folder not found after setup with option 5 ---
workaround
Status in Sikuli:
Fix Committed
Bug description:
--- TAKE CARE:
if you came here, because of symptoms described in bug 1218138:
Simply run setup again (preferably in empty folder) to get the latest version.
--------------------------------------------------------------------
--- problem
even though tessdata.jar was downloaded and processed by setup, the tessdata folder is not in the libs folder.
--- workaround
simply delete the libs folder and start the IDE, run a script or use sikuli-java.jar as usual. The libs folder now including the tessdata folder is recreated from sikuli-ide.jar, sikuli-script.jar or sikuli-java.jar.
TAKE CARE: As documented in the setup information: SikuliX MUST be
setup in a folder with full access rights in the current user's
context. Do not setup in the Windows program folders (as with RC3) or
any other Windows specific folder with probably restricted access
rights.
--------------------------------------------------------------------------
Hi,
I have installed the new version of Sikuli (1.0.1) according to these recommendations by RaiMan:
https://answers.launchpad.net/sikuli/+question/234061
Everything seemed fine, before I have tried to use the text recognition utilities.
After running my script, I have received the following error:
[error] TextRecognizer: init: tessdata folder not found at
C:/SikuliX/libs/
After all subsequent attempts to use text recognition (within the same
script run), the error appeared few more times but with no path
specified, like that:
[error] TextRecognizer: init: tessdata folder not found at
When I have checked the abovementioned path, I haven't found the tessdata folder as it was indicated by the error.
My solution was to copy the tessdata folder from my previous Sikuli version (1.0.0) folder. After this done, the script ran successfully.
Is that a bug or just a side effect of the non-standard installation?
Thanks!
Eugene
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1214589/+subscriptions
References