Added preference for multithreading_cores (controls number of threads spawned during recognition)

This commit is contained in:
Matt Hill
2014-02-20 11:53:42 -06:00
parent cb6e266754
commit 35820e3b0f
3 changed files with 5 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ max_plate_width_percent = 100
max_plate_height_percent = 100
opencl_enabled = 0
multithreading_cores = 1
ocr_min_font_point = 6

View File

@@ -72,6 +72,8 @@ void Config::loadValues(string country)
{
opencl_enabled = getBoolean("common", "opencl_enabled", false);
multithreading_cores = getInt("common", "multhreading_cores", 1);
maxPlateWidthPercent = getFloat("common", "max_plate_width_percent", 100);
maxPlateHeightPercent = getFloat("common", "max_plate_height_percent", 100);

View File

@@ -44,6 +44,7 @@ class Config
string country;
bool opencl_enabled;
int multithreading_cores;
float maxPlateWidthPercent;
float maxPlateHeightPercent;