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

using train.py #20

Closed jamesawyer closed 8 years ago

jamesawyer commented 8 years ago

Hello friends,

I have some trouble about dealing with train.py . I have managed to install tesseract with https://github.com/tesseract-ocr/tesseract/wiki/Compiling But i don't understand one thing. In train.py `TESSERACT_DIR='..../tesseract'

os.environ["TESSDATA_PREFIX"] = TESSERACT_DIR

os.system("export TESSDATA_PREFIX=" + TESSERACT_DIR)

TESSERACT_BIN=TESSERACT_DIR + '/tesseract' TESSERACT_TRAINDIR= TESSERACT_DIR + '/training' ` In my tesseract folder there exist training but there isnt any teserract.

Thank you

jamesawyer commented 8 years ago

I couldn't manage to train my dataset via train.py but with directly tesseract command i could. http://www.joyofdata.de/blog/a-guide-on-ocr-with-tesseract-3-03/ i used this tutorial if you're interested in.