mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 19:06:50 +08:00
Added detection_mask_image to config
This commit is contained in:
@@ -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
|
||||||
|
@@ -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", "");
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user