jacklicn / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

error opening data file #568

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
in cmd I run tesseract cn test
the cmd display error opening data file eng.traineddata
I think it's the file separator issue, how can i do with it ?

Original issue reported on code.google.com by wangjava...@gmail.com on 29 Oct 2011 at 12:51

Attachments:

GoogleCodeExporter commented 9 years ago
I gues you install tesseract by installer et least 2 time to different 
location. You need to manually change settings (windows XP): click on "My 
computer" -> Properties -> Advanced -> Enviroment Variables: In block "User 
variables for..." look for item "TESSDATA_PREFIX", double click on it and to 
"Variable value" put your location of tesseract tessdata ("D:\Program 
Files\Tesseract-OCR\" OR "E:\Program Files\Tesseract-OCR\").

Or wait for new new installer for 3.01 ;-). Anyway you will need to first 
install it than to uninstall it (this should clear your registry correctly) and 
to install it once again.

Original comment by zde...@gmail.com on 29 Oct 2011 at 7:31

GoogleCodeExporter commented 9 years ago
Thanks for your advice,but I think it's not the TESSDATA_PREFIX problem, It's 
the file separator,you see my attach, tesseract read the file in 
"E:\Tesseract-OCRtessdata/eng.traineddata", not 
"E:\Tesseract-OCRtessdata\eng.traineddata", why did it
use linux separator in windows?
I remove the duplicate TESSDATA_PREFIX,and now the result is in attach.

Original comment by wangjava...@gmail.com on 30 Oct 2011 at 12:24

Attachments:

GoogleCodeExporter commented 9 years ago
Now, the path appears to miss the slash in front of tessdata.

Original comment by nguyen...@gmail.com on 30 Oct 2011 at 2:05

GoogleCodeExporter commented 9 years ago
@wangjava:
"\" is escape character only windows use it as directory separator ;-)
You HAVE problem with TESSDATA_PREFIX ;-). 
"E:\Tesseract-OCRtessdata\eng.traineddata" do not exists on you system. Try it.

BTW: there is also 3.01 installer...

Original comment by zde...@gmail.com on 30 Oct 2011 at 4:18

GoogleCodeExporter commented 9 years ago
thanks to zde...@gmail.com, I resolved the problem finally.
reinstall the resseract use 3.01 installer.

Original comment by wangjava...@gmail.com on 31 Oct 2011 at 1:43

GoogleCodeExporter commented 9 years ago

Original comment by zde...@gmail.com on 31 Oct 2011 at 5:01

GoogleCodeExporter commented 9 years ago
I meet this problem too.
but I reinstall it to default directory.
it is OK now

Original comment by leopards...@gmail.com on 3 Jan 2012 at 2:52