mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 19:16:50 +08:00
Added always/never/auto invert config property to country config
This commit is contained in:
@@ -219,6 +219,24 @@ namespace alpr
|
||||
|
||||
multiline = getBoolean(ini, "", "multiline", false);
|
||||
|
||||
string invert_val = getString(ini, "", "invert", "auto");
|
||||
|
||||
if (invert_val == "always")
|
||||
{
|
||||
auto_invert = false;
|
||||
always_invert = true;
|
||||
}
|
||||
else if (invert_val == "never")
|
||||
{
|
||||
auto_invert = false;
|
||||
always_invert = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
auto_invert = true;
|
||||
always_invert = false;
|
||||
}
|
||||
|
||||
plateWidthMM = getFloat(ini, "", "plate_width_mm", 100);
|
||||
plateHeightMM = getFloat(ini, "", "plate_height_mm", 100);
|
||||
|
||||
|
Reference in New Issue
Block a user