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

Error when doing chinese plate training! #21

Open ghpass opened 8 years ago

ghpass commented 8 years ago

I use TTF training on linux server to training chinese plates. The lcn.china.exp0.box and lcn.china.exp0.tif are copied under the directory: train-ocr/cn/input

The I run the train.py (path: train-ocr/). Error happens: Generated training data for 9 words Warning in pixReadMemTiff: tiff page 1 not found sh: /data/tesseract-3.04.00/training/unicharset_extractor: No such file or directory Executing: /data/tesseract-3.04.00/training/mftraining -F ./tmp/font_properties -U unicharset -O ./tmp/lcn.unicharset ./tmp/*.tr sh: /data/tesseract-3.04.00/training/mftraining: No such file or directory rm: cannot remove ./unicharset': No such file or directory mv: cannot stat./tmp/lcn.unicharset': No such file or directory cp: cannot stat ./cn/input/unicharambigs': No such file or directory sh: /data/tesseract-3.04.00/training/cntraining: No such file or directory 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: /data/tesseract-3.04.00/training/combine_tessdata: No such file or directory mv: cannot stat./lcn.unicharset': No such file or directory mv: cannot stat ./lcn.shapetable': No such file or directory mv: cannot stat./lcn.pffmtable': No such file or directory mv: cannot stat ./lcn.inttemp': No such file or directory mv: cannot stat./lcn.normproto': No such file or directory mv: cannot stat `./lcn.unicharambigs': No such file or directory

ghpass commented 8 years ago

The path in the train.py is modified as follows: TESSERACT_DIR='/usr/local/share/tessdata' TESSERACT_BIN='/usr/local/bin/tesseract' TESSERACT_TRAINDIR='/data/tesseract-3.04.00/training'

lichenguang302 commented 7 years ago

hi @ghpass have you got any lock on chinese plate?

alucard079 commented 5 years ago

Any luck with this? can you help me with his, I installed it in local directory. @ghpass @lichenguang302