Added detection_mask_image to config

This commit is contained in:
Matt Hill
2016-03-14 22:23:47 -04:00
parent daa029b0cb
commit 7a1a9a671f
3 changed files with 9 additions and 0 deletions

View File

@@ -49,6 +49,11 @@ must_match_pattern = 0
; Bypasses plate detection. If this is set to 1, the library assumes that each region provided is a likely plate area. ; Bypasses plate detection. If this is set to 1, the library assumes that each region provided is a likely plate area.
skip_detection = 0 skip_detection = 0
; Specifies the full path to an image file that constrains the detection area. Only the plate regions allowed through the mask
; will be analyzed. The mask image must match the resolution of your image to be analyzed. The mask is black and white.
; Black areas will be ignored, white areas will be searched. An empty value means no mask (scan the entire image)
detection_mask_image =
; OpenALPR can scan the same image multiple times with different randomization. Setting this to a value larger than ; OpenALPR can scan the same image multiple times with different randomization. Setting this to a value larger than
; 1 may increase accuracy, but will increase processing time linearly (e.g., analysis_count = 3 is 3x slower) ; 1 may increase accuracy, but will increase processing time linearly (e.g., analysis_count = 3 is 3x slower)
analysis_count = 1 analysis_count = 1

View File

@@ -189,6 +189,8 @@ namespace alpr
skipDetection = getBoolean(ini, "", "skip_detection", false); skipDetection = getBoolean(ini, "", "skip_detection", false);
detection_mask_image = getString(ini, "", "detection_mask_image", "");
analysis_count = getInt(ini, "", "analysis_count", 1); analysis_count = getInt(ini, "", "analysis_count", 1);
prewarp = getString(ini, "", "prewarp", ""); prewarp = getString(ini, "", "prewarp", "");

View File

@@ -61,6 +61,8 @@ namespace alpr
bool skipDetection; bool skipDetection;
std::string detection_mask_image;
int analysis_count; int analysis_count;
bool auto_invert; bool auto_invert;