diff --git a/src/openalpr/edges/platelines.cpp b/src/openalpr/edges/platelines.cpp index db06cda..63f4a8f 100644 --- a/src/openalpr/edges/platelines.cpp +++ b/src/openalpr/edges/platelines.cpp @@ -143,8 +143,8 @@ namespace alpr if (this->debug) cout << "PlateLines::getLines" << endl; - static int HORIZONTAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityHorizontal; - static int VERTICAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityVertical; + int HORIZONTAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityHorizontal; + int VERTICAL_SENSITIVITY = pipelineData->config->plateLinesSensitivityVertical; vector allLines; vector filteredLines; diff --git a/src/openalpr/textdetection/characteranalysis.cpp b/src/openalpr/textdetection/characteranalysis.cpp index bb46af9..a61585f 100644 --- a/src/openalpr/textdetection/characteranalysis.cpp +++ b/src/openalpr/textdetection/characteranalysis.cpp @@ -295,15 +295,15 @@ namespace alpr void CharacterAnalysis::filter(Mat img, TextContours& textContours) { - static int STARTING_MIN_HEIGHT = round (((float) img.rows) * config->charAnalysisMinPercent); - static int STARTING_MAX_HEIGHT = round (((float) img.rows) * (config->charAnalysisMinPercent + config->charAnalysisHeightRange)); - static int HEIGHT_STEP = round (((float) img.rows) * config->charAnalysisHeightStepSize); - static int NUM_STEPS = config->charAnalysisNumSteps; + int STARTING_MIN_HEIGHT = round (((float) img.rows) * config->charAnalysisMinPercent); + int STARTING_MAX_HEIGHT = round (((float) img.rows) * (config->charAnalysisMinPercent + config->charAnalysisHeightRange)); + int HEIGHT_STEP = round (((float) img.rows) * config->charAnalysisHeightStepSize); + int NUM_STEPS = config->charAnalysisNumSteps; int bestFitScore = -1; vector bestIndices; - + for (int i = 0; i < NUM_STEPS; i++) {