[request] Linux: leave the creation of the tessdata folder to the user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
High
|
RaiMan |
Bug Description
The functionality to find text on the screen does not work properly. The following error appears:
[debug] ResourceLoaderB
[error] TextRecognizer: init: tessdata folder not found at /usr/local/share/
[error] Region.find(text): text search is now switched off
[error] script [ test1 ] stopped with error in line 6
[error] FindFailed ( Text search currently switched off )
I have seen the bug 1214589, and followed the steps there. I deleted the folder libs, and I do have a subfolder tessdata now. Unfortunately, this does not seem to be enough. The error still occurs.
RaiMan, I did some debuging and found out the source of the problem. In the class org.sikuli.
if (Settings.
if (Settings.
log(lvl, "Using this as OCR directory (tessdata) too");
} else {
}
}
I am not sure why on linux we end up on a location different from libPath. Is this a bug or a feature? :)
Changed in sikuli: | |
status: | Fix Committed → In Progress |
milestone: | 1.1.0 → 2.0.0 |
summary: |
- [1.0.1] Linux: leave the creation of the tessdata folder to the user + [request] Linux: leave the creation of the tessdata folder to the user |
Changed in sikuli: | |
status: | In Progress → Fix Released |
milestone: | 2.0.0 → none |
Are you on Linux?
If yes: absolutely right.
On Linux systems option 5 should not be presented, since it is your own job, to completely install Tesseract (including the tessdata folder, that then usually is at /usr/local/share, if not, you have to change that).
Thanks for pointing out.