alpr perisan ocr

282 views
Skip to first unread message

Ali

unread,
Jun 24, 2016, 11:42:04 AM6/24/16
to OpenALPR
Hi

I'm working on Persian OCR on alpr,

I made fas.conf and put that in this directory:
/usr/local/share/openalpr/runtime_data/config/

then add TESSDATA_PREFIX to enviroment path:
export TESSDATA_PREFIX=/home/pi/openalpr/libraries/tesseract-master/tessdata-master

and when I typed the following command:
openalpr-utils-classifychars fas ./irplate/ ./output-image/

I got this error:

--(!) Runtime directory '/usr/local/share/openalpr/runtime_data' is invalid.  Missing OCR data for the country: 'fas'!
Error opening data file /usr/local/share/openalpr/runtime_data/ocr/tessdata/fas.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language 'fas'
Tesseract couldn't load any languages!

I got both tif file and box file, but now where should I put them?
How about XMLs?

guess I've kind of lost,I'd appreciate some help

I've read this document:
https://github.com/openalpr/train-ocr
but it did not help


Thanks

Matt

unread,
Jun 27, 2016, 9:51:25 AM6/27/16
to OpenALPR
The OCR training process should produce an fas.traineddata file from your tif/box files:
Reply all
Reply to author
Forward
0 new messages