Tesseract fails if there's no eng.traineddata present

Bug #1189995 reported by Luke Goral
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tesseract (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Tesseract fails with:

Error opening data file /usr/local/share/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.

when no eng.traineddata is present in "tessdata", even if a different language file has been specified. As far as I can tell, this was introduced in r760 (http://code.google.com/p/tesseract-ocr/source/detail?r=760&path=/trunk/api/tesseractmain.cpp) by the addition of api.Init call with NULL language (which defaults to 'eng'), and fixed in r811 (http://code.google.com/p/tesseract-ocr/source/detail?r=811&path=/trunk/api/tesseractmain.cpp).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tesseract (Ubuntu):
status: New → Confirmed
Revision history for this message
Jeff Breidenbach (jeff-jab) wrote :

Fixed in two ways. First, tesseract-ocr depends on tesseract-ocr-eng. Second, I just shipped new code with 3.04.00.

Changed in tesseract (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.