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

Issues in path of tesseract in train.py #44

Open alucard079 opened 5 years ago

alucard079 commented 5 years ago

I specified the path of my tesseract correctly but still have this error.

screenshot from 2019-02-01 00-38-15 screenshot from 2019-02-01 00-41-23 screenshot from 2019-02-01 00-41-34

or there is something wrong with my installation in OCR?

soufianesabiri commented 5 years ago

Have you found a solution?? Please help

aliyazdanipak commented 4 years ago

as the error log ... the tesseract folder is not accessible by the script , you should change permissions or run the script with sudo

nohumanman commented 1 year ago

this is a 3 year old thread but for Ubuntu these are my directories - note the TESSERACT_BIN and TESSERACT_TRAINDIR are not based off of TESSERACT_DIR as in the train.py and are different

TESSERACT_DIR='/usr/share/tesseract-ocr/4.00/tessdata' TESSERACT_BIN='/usr/bin/tesseract' TESSERACT_TRAINDIR= '/usr/bin'

this successfully generated a trained file for me