Issue 816 in tesseract-ocr: Error opening data file /usr/local/share/tessdata/eng.traineddata

841 views
Skip to first unread message

tesser...@googlecode.com

unread,
Dec 31, 2012, 7:42:33 PM12/31/12
to tesserac...@googlegroups.com
Status: New
Owner: ----

New issue 816 by DannySal...@gmail.com: Error opening data file
/usr/local/share/tessdata/eng.traineddata
http://code.google.com/p/tesseract-ocr/issues/detail?id=816

What steps will reproduce the problem?
1. Running tesseract off eclipse
2. Builds fine
3. Runtime errors

What is the expected output? What do you see instead?

Should see the tif image converted to text. Tried with jpg as well.

What version of the product are you using? On what operating system?

tesseract 3.02 on ubuntu, using eclipse

Please provide any additional information below.

The error message I get is the following

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!
Image file phototest.tif cannot be opened!

I have copied the tessdata into that directory, I even double checked
with 'ls /usr/local/share/tessdata/' and the file eng.traineddata is in
there.
Seems like some kind of path issue to me, but idk what it could be.


tesser...@googlecode.com

unread,
Jan 1, 2013, 12:37:31 PM1/1/13
to tesserac...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 816 by zde...@gmail.com: Error opening data file
/usr/local/share/tessdata/eng.traineddata
http://code.google.com/p/tesseract-ocr/issues/detail?id=816

For running tesseract you do not need eclipse.
Please post error revelent to tesseract-ocr only!
If you need help with using eclipse check tesseract forum (or better some
eplise forum).

tesser...@googlecode.com

unread,
Jan 4, 2014, 1:38:07 AM1/4/14
to tesserac...@googlegroups.com

Comment #2 on issue 816 by mangala...@gmail.com: Error opening data file
/usr/local/share/tessdata/eng.traineddata
http://code.google.com/p/tesseract-ocr/issues/detail?id=816

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!
RuntimeError: the API did not Init correctly
from
/var/lib/gems/1.9.1/gems/tesseract-ocr-0.1.5/lib/tesseract/api.rb:104:in
`init'
from
/var/lib/gems/1.9.1/gems/tesseract-ocr-0.1.5/lib/tesseract/engine.rb:234:in
`_init'
from
/var/lib/gems/1.9.1/gems/tesseract-ocr-0.1.5/lib/tesseract/engine.rb:54:in
`initialize'
from /var/lib/gems/1.9.1/gems/call-me-0.0.2.3/lib/call-me/named.rb:207:in
`block in named'
from (irb):2:in `new'
from (irb):2
from
/var/lib/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in
`start'
from
/var/lib/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in
`start'
from /var/lib/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:41:in
`<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>


I am also getting same error Please help me


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages