Removed unnecessary static variables

This commit is contained in:
Matt Hill
2015-09-24 22:16:47 -04:00
parent c2921081e7
commit 9ea566a8c8
2 changed files with 7 additions and 7 deletions

View File

@@ -143,8 +143,8 @@ namespace alpr
if (this->debug) if (this->debug)
cout << "PlateLines::getLines" << endl; cout << "PlateLines::getLines" << endl;
static int HORIZONTAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityHorizontal; int HORIZONTAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityHorizontal;
static int VERTICAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityVertical; int VERTICAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityVertical;
vector<Vec2f> allLines; vector<Vec2f> allLines;
vector<PlateLine> filteredLines; vector<PlateLine> filteredLines;

View File

@@ -295,15 +295,15 @@ namespace alpr
void CharacterAnalysis::filter(Mat img, TextContours& textContours) void CharacterAnalysis::filter(Mat img, TextContours& textContours)
{ {
static int STARTING_MIN_HEIGHT = round (((float) img.rows) * config->charAnalysisMinPercent); int STARTING_MIN_HEIGHT = round (((float) img.rows) * config->charAnalysisMinPercent);
static int STARTING_MAX_HEIGHT = round (((float) img.rows) * (config->charAnalysisMinPercent + config->charAnalysisHeightRange)); int STARTING_MAX_HEIGHT = round (((float) img.rows) * (config->charAnalysisMinPercent + config->charAnalysisHeightRange));
static int HEIGHT_STEP = round (((float) img.rows) * config->charAnalysisHeightStepSize); int HEIGHT_STEP = round (((float) img.rows) * config->charAnalysisHeightStepSize);
static int NUM_STEPS = config->charAnalysisNumSteps; int NUM_STEPS = config->charAnalysisNumSteps;
int bestFitScore = -1; int bestFitScore = -1;
vector<bool> bestIndices; vector<bool> bestIndices;
for (int i = 0; i < NUM_STEPS; i++) for (int i = 0; i < NUM_STEPS; i++)
{ {