openalpr / train-ocr

Input files and scripts necessary to train the license plate OCR
GNU Affero General Public License v3.0
234 stars 109 forks source link

Issue running train.py #28

Closed harshmunshi closed 7 years ago

harshmunshi commented 7 years ago

Hi Matt,

I am getting the following error, please help :)

Two-Letter Country Code to Train: sr Processing: ./sr/input/leu.serbia.exp0.box Executing: /home/harsh/Documents/Number_Plate_Training/tesseract -l eng ./sr/input/leu.serbia.exp0.tif leu.serbia.exp0 nobatch box.train.stderr sh: 1: /home/harsh/Documents/Number_Plate_Training/tesseract: Permission denied mv: cannot stat './leu.serbia.exp0.tr': No such file or directory mv: cannot stat './leu.serbia.exp0.txt': No such file or directory sh: 1: /home/harsh/Documents/Number_Plate_Training/training/unicharset_extractor: not found Executing: /home/harsh/Documents/Number_Plate_Training/training/mftraining -F ./tmp/font_properties -U unicharset -O ./tmp/lsr.unicharset ./tmp/*.tr sh: 1: /home/harsh/Documents/Number_Plate_Training/training/mftraining: not found rm: cannot remove './unicharset': No such file or directory mv: cannot stat './tmp/lsr.unicharset': No such file or directory cp: cannot stat './sr/input/unicharambigs': No such file or directory sh: 1: /home/harsh/Documents/Number_Plate_Training/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/harsh/Documents/Number_Plate_Training/training/combine_tessdata: not found mv: cannot stat './lsr.unicharset': No such file or directory mv: cannot stat './lsr.shapetable': No such file or directory mv: cannot stat './lsr.pffmtable': No such file or directory mv: cannot stat './lsr.inttemp': No such file or directory mv: cannot stat './lsr.normproto': No such file or directory mv: cannot stat './lsr.unicharambigs': No such file or directory

ilikecats567 commented 7 years ago

Hi, did you solve this problem?

harshmunshi commented 7 years ago

I did actually, set the path of the tesseract correctly.

stevenbp commented 7 years ago

How, where was your tesseract directory?

sezan92 commented 7 years ago

Can you clarify the necessary steps?

beerjamin commented 6 years ago

Here are the steps for fixing the error. The problem is that your tesseract executable is not on the same path as the one on the train.py file, you can check it out here What you need to do is locate where your tesseract executable is and change the path accordingly