--listlangs shows no installed languages

55 views
Skip to first unread message

Nicolas Nickisch

unread,
Sep 26, 2014, 2:22:39 PM9/26/14
to tesser...@googlegroups.com
I compiled and installed tesseract 3.03 manually.

tesseract --listlangs gives me an error message:

error opening data file /usr/local/share/tessdata/eng.traineddata

INdeed, I don't have eng.traineddata in that directory, but deu.traineddata.

Is there something I have to do to install german language files ?

zdenko podobny

unread,
Sep 26, 2014, 4:32:47 PM9/26/14
to tesser...@googlegroups.com
To provided correct information about available languages there is need to initialize tesseract (to get tessdata directory path).
If you do not specified language, tesseract will use default language (= English) for its initialization. Usually English data is installed by default.

Solutions are:
  1. Install English language file (I would suggest also osd)
  2. Provide existing language as parameter e.g.:
    tesseract --list-langs -l deu
    where deu will be used only for initialization...
--
Zdenko
Reply all
Reply to author
Forward
0 new messages