zendalona / lios

Linux-intelligent-ocr-solution
GNU General Public License v3.0
134 stars 33 forks source link

Couldn't find tesseract dictionaries on Debian #6

Open sthibaul opened 6 years ago

sthibaul commented 6 years ago

Hello,

We've had issues with starting lios at all on Debian, because the tesseract data is in l"/usr/share/tesseract-ocr/4.00/tessdata" instead of "/usr/share/tesseract-ocr/tessdata". Perhaps the tesseract backend should just use the output of the "tesseract --list-langs" command?

Samuel

svoboda77 commented 1 year ago

It's still not fixed in Debian 12 bookworm. To fix this in bookworm, create a softlink tessdata -> 5/tessdata in /usr/share/tesseract-ocr.

sthibaul commented 1 year ago

It's still not fixed in Debian 12 bookworm. To fix this in bookworm, create a softlink tessdata -> 5/tessdata in /usr/share/tesseract-ocr.

That is not really a fix :)

lios should really use the tesseract command-line tool, instead of hardcoding paths

Nalin-x-Linux commented 1 year ago

I agree with @sthibaul. I think '--list-langs' can list the languages and we can remove other code since we are no longer support tesseract-training gui.