mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 10:56:54 +08:00
Removed unnecessary static variables
This commit is contained in:
@@ -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;
|
||||||
|
@@ -295,10 +295,10 @@ 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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user