I'm using Ubuntu 16.04 to run OpenALPR. I installed it and produced font tiles from the TTF font files for my country, but ran into problems using train.py. It's supposed to produce [countrycode].traineddata
files, but I get the following errors when I execute it from the terminal window:
Processing: ./ae/input/lae.abudhabi.exp0.box
./ae/input/lae.abudhabi.exp0.tif
Executing: /home/user123/train-ocr/tesseract-ocr/tesseract -l eng ./ae/input/lae.abudhabi.exp0.tif lae.abudhabi.exp0 nobatch box.train.stderr
sh: 1: /home/user123/train-ocr/tesseract-ocr/tesseract: Permission denied
mv: cannot stat './lae.abudhabi.exp0.tr': No such file or directory
mv: cannot stat './lae.abudhabi.exp0.txt': No such file or directory
sh: 1: /home/user123/train-ocr/tesseract-ocr/tesseract/training/unicharset_extractor: not found
Executing: /home/user123/train-ocr/tesseract-ocr/tesseract/training/mftraining -F ./tmp/font_properties -U unicharset -O ./tmp/lae.unicharset ./tmp/*.tr
sh: 1: /home/user123/train-ocr/tesseract-ocr/tesseract/training/mftraining: not found
rm: cannot remove './unicharset': No such file or directory
mv: cannot stat './tmp/lae.unicharset': No such file or directory
cp: cannot stat './ae/input/unicharambigs': No such file or directory
sh: 1: /home/user123/train-ocr/tesseract-ocr/tesseract/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/user123/train-ocr/tesseract-ocr/tesseract/training/combine_tessdata: not found
./ae/ae.config
Applying config file: ./ae/ae.config
lae.traineddata
sh: 1: /home/user123/train-ocr/tesseract-ocr/tesseract/training/combine_tessdata: not found
config file: /home/user123/train-ocr/tesseract-ocr/tesseract/training/combine_tessdata -o lae.traineddata ./ae/ae.config
status: 32512
mv: cannot stat './lae.unicharset': No such file or directory
mv: cannot stat './lae.shapetable': No such file or directory
mv: cannot stat './lae.pffmtable': No such file or directory
mv: cannot stat './lae.inttemp': No such file or directory
mv: cannot stat './lae.normproto': No such file or directory
mv: cannot stat './lae.unicharambigs': No such file or directory
I'm not sure what I'm supposed to do, since all the file paths are correct. Additionally the code asks for a .config file in this line, but doesn't specify where I'm supposed to get it from. I have created a .conf file for my country's font, per the instructions here, and produced the .box and .tif files, but there's no mention of .config.
Any help would be greatly appreciated! I'm using the default Python version 2.7.12. My Tesseract files in the user's home directory.