Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in train.py specifying tesseract-ocr #46

Open
alucard079 opened this issue Feb 6, 2019 · 3 comments
Open

Error in train.py specifying tesseract-ocr #46

alucard079 opened this issue Feb 6, 2019 · 3 comments

Comments

@alucard079
Copy link

I have properly installed my tesseract-ocr and directed it where it installed using absolute path. When I run the train.py it returns this error.

Two-Letter Country Code to Train: gb
Processing: ./gb/input/luk.uk.exp0.box
Executing: /home/nigel/tesseract-ocr/tesseract -l eng ./gb/input/luk.uk.exp0.tif luk.uk.exp0 nobatch box.train.stderr
sh: 1: /home/nigel/tesseract-ocr/tesseract: not found
mv: cannot stat './luk.uk.exp0.tr': No such file or directory
mv: cannot stat './luk.uk.exp0.txt': No such file or directory
sh: 1: /home/nigel/tesseract-ocr/training/unicharset_extractor: not found
Executing: /home/nigel/tesseract-ocr/training/mftraining -F ./tmp/font_properties -U unicharset -O ./tmp/lgb.unicharset ./tmp/*.tr
sh: 1: /home/nigel/tesseract-ocr/training/mftraining: not found
rm: cannot remove './unicharset': No such file or directory
mv: cannot stat './tmp/lgb.unicharset': No such file or directory
cp: cannot stat './gb/input/unicharambigs': No such file or directory
sh: 1: /home/nigel/tesseract-ocr/training/cntraining: not found
mv: cannot stat './shapetable': No such file or directory
mv: cannot stat './pffmtable': No such file or directory
mv: cannot stat './inttemp': No such file or directory
mv: cannot stat './normproto': No such file or directory
sh: 1: /home/nigel/tesseract-ocr/training/combine_tessdata: not found
mv: cannot stat './lgb.unicharset': No such file or directory
mv: cannot stat './lgb.shapetable': No such file or directory
mv: cannot stat './lgb.pffmtable': No such file or directory
mv: cannot stat './lgb.inttemp': No such file or directory
mv: cannot stat './lgb.normproto': No such file or directory
mv: cannot stat './lgb.unicharambigs': No such file or directory

This is my current directory. /home/nigel/train/train-ocr
My tesseract-ocr installed on /home/nigel/tesseract-ocr

this is my code in train.py TESSERACT_DIR='/home/nigel/tesseract-ocr/src'

Please help me with this.

@soufianesabiri
Copy link

Have you found a solution? I'm using Ubuntu

@santanafabio
Copy link

Some one?

@reddytocode
Copy link

reinstalling teserract from a ppa worked for me, and the guy of my team that did take care of that found that the trick was changing code from python2 to python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants