TESSDATA_PREFIX issue?

290 views
Skip to first unread message

Nim Sudoh

unread,
Apr 21, 2015, 2:33:13 AM4/21/15
to tesser...@googlegroups.com
Hi,

On Arch Linux, installed Tesseract and tesseract-data-eng..


While I can use Tesseract from the command line sucessfully.

If I try and use gimagereader or gscan2pdf I get the same error:
Error opening data file /usr/bin/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
Could not initialize tesseract.


I have successfully set the environment variable as:
export TESSDATA_PREFIX=/usr/share/tessdata
(as shown by the command line success)

It may not be a Tesseract issue, but it seems odd both gimagereader or gscan2pdf  look in the wrong place for the eng.trainedata.

Can anybody give me any pointers?

Thanks!


Reply all
Reply to author
Forward
0 new messages