mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 00:46:49 +08:00
Added preference for multithreading_cores (controls number of threads spawned during recognition)
This commit is contained in:
@@ -8,6 +8,8 @@ max_plate_width_percent = 100
|
|||||||
max_plate_height_percent = 100
|
max_plate_height_percent = 100
|
||||||
|
|
||||||
opencl_enabled = 0
|
opencl_enabled = 0
|
||||||
|
multithreading_cores = 1
|
||||||
|
|
||||||
|
|
||||||
ocr_min_font_point = 6
|
ocr_min_font_point = 6
|
||||||
|
|
||||||
|
@@ -72,6 +72,8 @@ void Config::loadValues(string country)
|
|||||||
{
|
{
|
||||||
|
|
||||||
opencl_enabled = getBoolean("common", "opencl_enabled", false);
|
opencl_enabled = getBoolean("common", "opencl_enabled", false);
|
||||||
|
multithreading_cores = getInt("common", "multhreading_cores", 1);
|
||||||
|
|
||||||
maxPlateWidthPercent = getFloat("common", "max_plate_width_percent", 100);
|
maxPlateWidthPercent = getFloat("common", "max_plate_width_percent", 100);
|
||||||
maxPlateHeightPercent = getFloat("common", "max_plate_height_percent", 100);
|
maxPlateHeightPercent = getFloat("common", "max_plate_height_percent", 100);
|
||||||
|
|
||||||
|
@@ -44,6 +44,7 @@ class Config
|
|||||||
string country;
|
string country;
|
||||||
|
|
||||||
bool opencl_enabled;
|
bool opencl_enabled;
|
||||||
|
int multithreading_cores;
|
||||||
|
|
||||||
float maxPlateWidthPercent;
|
float maxPlateWidthPercent;
|
||||||
float maxPlateHeightPercent;
|
float maxPlateHeightPercent;
|
||||||
|
Reference in New Issue
Block a user