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

path tesseract #13

Open olivero86 opened 9 years ago

olivero86 commented 9 years ago

Hi I would like to run the train.py script but I'm not sure what the correct path to tesseract is? I used this command: brew install tesseract --devel to install tesseract on OS X. I think this puts tesseract in the following path: /usr/local/Cellar/tesseract/3.03rc1_3 The only subfolders in there are: bin, lib, include and share. In the train.py script it refers to other subfolders as well e.g. /training.

So my question is, what path do I set for TESSERACT_DIR in train.py?

Thank you!

renatosc commented 8 years ago

@olivero86, were you able to find out the correct path for TESSERACT_DIR ?

renatosc commented 8 years ago

After some research I found out that you need to install tesseract with the training tools. You can do it usingbrew install --with-training-tools tesseract.

Then just point the TESSERACT_DIR to the bin folder of the installation. for example: TESSERACT_DIR = '/usr/local/Cellar/tesseract/3.04.01_2/bin'