Added two new configuration options to control detection.

Enforcing a maximum resolution for the image input to detection
Adding a configurable "strictness" to tighten or loosen the detection leniency
This commit is contained in:
Matt Hill
2014-06-10 18:03:42 -04:00
parent caaf44120c
commit d1d83fe404
4 changed files with 42 additions and 6 deletions

View File

@@ -118,8 +118,11 @@ void Config::loadValues(string country)
multithreading_cores = getInt("common", "multithreading_cores", 1);
detection_iteration_increase = getFloat("common", "detection_iteration_increase", 1.1);
detectionStrictness = getInt("common", "detection_strictness", 3);
maxPlateWidthPercent = getFloat("common", "max_plate_width_percent", 100);
maxPlateHeightPercent = getFloat("common", "max_plate_height_percent", 100);
maxDetectionInputWidth = getInt("common", "max_detection_input_width", 1280);
maxDetectionInputHeight = getInt("common", "max_detection_input_height", 768);
maxPlateAngleDegrees = getInt("common", "max_plate_angle_degrees", 15);