mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 10:56:51 +08:00
Added country config arguments for postprocess_regex_letters and postprocess_regex_numbers
This commit is contained in:
@@ -30,3 +30,7 @@ min_plate_size_width_px = 85
|
||||
min_plate_size_height_px = 28
|
||||
|
||||
ocr_language = lau
|
||||
|
||||
; Override for postprocess letters/numbers regex.
|
||||
postprocess_regex_letters = [A-Z]
|
||||
postprocess_regex_numbers = [0-9]
|
@@ -31,3 +31,7 @@ min_plate_size_width_px = 100
|
||||
min_plate_size_height_px = 20
|
||||
|
||||
ocr_language = lau
|
||||
|
||||
; Override for postprocess letters/numbers regex.
|
||||
postprocess_regex_letters = [A-Z]
|
||||
postprocess_regex_numbers = [0-9]
|
@@ -32,3 +32,7 @@ min_plate_size_width_px = 65
|
||||
min_plate_size_height_px = 18
|
||||
|
||||
ocr_language = leu
|
||||
|
||||
; Override for postprocess letters/numbers regex.
|
||||
postprocess_regex_letters = [A-Z]
|
||||
postprocess_regex_numbers = [0-9]
|
@@ -31,3 +31,7 @@ min_plate_size_width_px = 100
|
||||
min_plate_size_height_px = 20
|
||||
|
||||
ocr_language = lkr
|
||||
|
||||
; Override for postprocess letters/numbers regex.
|
||||
postprocess_regex_letters = \pL
|
||||
postprocess_regex_numbers = \pN
|
||||
|
@@ -30,3 +30,7 @@ min_plate_size_width_px = 70
|
||||
min_plate_size_height_px = 35
|
||||
|
||||
ocr_language = lus
|
||||
|
||||
; Override for postprocess letters/numbers regex.
|
||||
postprocess_regex_letters = [A-Z]
|
||||
postprocess_regex_numbers = [0-9]
|
@@ -243,7 +243,10 @@ namespace alpr
|
||||
plateLinesSensitivityHorizontal = getFloat(ini, "", "plateline_sensitivity_horizontal", 0);
|
||||
|
||||
ocrLanguage = getString(ini, "", "ocr_language", "none");
|
||||
|
||||
|
||||
postProcessRegexLetters = getString(ini, "", "postprocess_regex_letters", "\\pL");
|
||||
postProcessRegexNumbers = getString(ini, "", "postprocess_regex_numbers", "\\pN");
|
||||
|
||||
ocrImageWidthPx = round(((float) templateWidthPx) * ocrImagePercent);
|
||||
ocrImageHeightPx = round(((float)templateHeightPx) * ocrImagePercent);
|
||||
stateIdImageWidthPx = round(((float)templateWidthPx) * stateIdImagePercent);
|
||||
|
@@ -100,6 +100,9 @@ namespace alpr
|
||||
unsigned int postProcessMinCharacters;
|
||||
unsigned int postProcessMaxCharacters;
|
||||
|
||||
std::string postProcessRegexLetters;
|
||||
std::string postProcessRegexNumbers;
|
||||
|
||||
bool debugGeneral;
|
||||
bool debugTiming;
|
||||
bool debugPrewarp;
|
||||
|
Reference in New Issue
Block a user