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

What does template_max_width_px and min_plate_size_width_px specify? #25

Open MHKani opened 8 years ago

MHKani commented 8 years ago

I have a question about these 2 parameters: Does template_max_width_px specify the maximum width of the plate in the image stream comes from the video or the maximum width of the plate in the training sample images? Moreover, what about the min_plate_size_width_px and what is going to be checked to be valid? Thank you for your help.

maechler commented 7 years ago

@MHKani Did you already find out what these parameters mean? We would appreciate any help.

That's what the doc says:

plate_width_mm = [width of full plate in mm]
plate_height_mm = [height of full plate in mm]
char_width_mm = [width of a single character in mm]
char_height_mm = [height of a single character in mm]
char_whitespace_top_mm = [whitespace between the character and the top of the plate in mm]
char_whitespace_bot_mm = [whitespace between the character and the bottom of the plate in mm]
template_max_width_px = [maximum width of the plate before processing. Should be proportional to the plate dimensions]
template_max_height_px = [maximum height of the plate before processing. Should be proportional to the plate dimensions]
min_plate_size_width_px = [Minimum size of a plate region to consider it valid.]
min_plate_size_height_px = [Minimum size of a plate region to consider it valid.]
ocr_language = [name of the OCR language – typically just the letter l followed by your country code]

http://doc.openalpr.com/opensource.html#adding-a-new-country

However I still do not know what the template_ parameters are for.