Tesseract: Tesseract fails to load any languages with --oem 0 option

Created on 27 Dec 2019  路  2Comments  路  Source: tesseract-ocr/tesseract

Environment

  • Tesseract Version: 4.1.0
  • Platform: Linux parrot 5.3.0-3parrot3-amd64 #1 SMP Parrot 5.3.9-3parrot3 (2019-11-23) x86_64 GNU/Linux

Current Behavior:

tesseract myimg.png output --oem 0 gives the following error:

Failed loading language 'eng'
Tesseract couldn't load any languages!
Could not initialize tesseract.

Expected Behavior:

To use --oem 0 without errors

Suggested Fix:

I suspect that tesseract isn't able to find languages, however tesseract --list-langs prints eng and osd.
This is the path to my tessdata folder.
/usr/share/tesseract-ocr/4.00/tessdata

duplicate question

All 2 comments

There is a simple answer to your question: don't use advanced options like --oem 0 unless you are an advanced user. Please use the user forum for questions.

The right answer is that eng exists, but does not support --oem 0, so Tesseract refuses to use it.

This problem is reported here very often. Maybe you want to provide a patch for Tesseract to give a better error message?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mm-manu picture mm-manu  路  4Comments

garry-ut99 picture garry-ut99  路  5Comments

duzenko picture duzenko  路  3Comments

johnthagen picture johnthagen  路  6Comments

ivder picture ivder  路  7Comments