AmitGorvadiya / tesseract-ocr

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

training tesseract on windows get error at step 1 #335

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 follow training Tesseract wiki on step 1:
 execute commond line:"tesseract scan.bmp scan batch.nochop makebox”

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

read_variables_file:
Can't open ./tessdata/configs/makebox
Could not open file, batch.nochop 

What version of the product are you using? On what operating system?
    version:tesseract-2.04.exe.tar.gz
         os:WindowsXp

Original issue reported on code.google.com by johnsonc...@gmail.com on 22 Jul 2010 at 9:05

GoogleCodeExporter commented 9 years ago
The Windows executable package does not include the configs. You will need to 
copy the 'tessdata' from the source distribution to the same directory as 
tesseract.exe to perform training.

Original comment by joregan on 22 Jul 2010 at 5:07

GoogleCodeExporter commented 9 years ago
I got it now ,Thank you very much !

Original comment by johnsonc...@gmail.com on 23 Jul 2010 at 12:56

GoogleCodeExporter commented 9 years ago
I am on Windows 7 64-bit Enterprise.

When I used the executable package (and did not copy the config files from the 
source package) I indeed received the error "Can't open <path>, Could not open 
file, batch.nochop"

Now that I have copied over the configs and tessconfig directories from the 
source package into ./tessdata/configs, I receive ONLY the latter part of the 
same error.  In other words I just get "Could not open file, batch.nochop"

Clearly I must be missing something small but would appreciate any assistance, 
many thanks.

Original comment by mkort...@gmail.com on 3 Oct 2010 at 5:24

GoogleCodeExporter commented 9 years ago
I have figured out the issue.  It was slightly confusing.

As it turns out the tessdata directory contents and structure from the source 
package must be copied in full to the tessdata directory.  In other words the 
folders "configs" AND "tessconfigs" MUST be present and then you must 
ADDITIONALLY copy over your language files in order to properly execute this 
command.

Only copying the files asked for (batch.noshop) or ONLY copying over the source 
package folder without the langauge files will both lead to errors.

Original comment by mkort...@gmail.com on 3 Oct 2010 at 5:34