mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-11-02 21:04:01 +08:00
Removed unused variable and comments
This commit is contained in:
@@ -245,7 +245,6 @@ namespace alpr
|
||||
float charHeightToPlateHeightRatio = pipelineData->config->plateHeightMM / pipelineData->config->avgCharHeightMM;
|
||||
float idealPixelHeight = tlc.charHeight * charHeightToPlateHeightRatio;
|
||||
|
||||
float confidenceDiff = 0;
|
||||
float missingSegmentPenalty = 0;
|
||||
|
||||
if (h1 == NO_LINE && h2 == NO_LINE)
|
||||
@@ -257,32 +256,26 @@ namespace alpr
|
||||
bottom = tlc.centerHorizontalLine.getParallelLine(-1 * idealPixelHeight / 2 );
|
||||
|
||||
missingSegmentPenalty = 2;
|
||||
//confidenceDiff += 2;
|
||||
}
|
||||
else if (h1 != NO_LINE && h2 != NO_LINE)
|
||||
{
|
||||
top = this->plateLines->horizontalLines[h1].line;
|
||||
bottom = this->plateLines->horizontalLines[h2].line;
|
||||
//confidenceDiff += (1.0 - this->plateLines->horizontalLines[h1].confidence);
|
||||
//confidenceDiff += (1.0 - this->plateLines->horizontalLines[h2].confidence);
|
||||
}
|
||||
else if (h1 == NO_LINE && h2 != NO_LINE)
|
||||
{
|
||||
bottom = this->plateLines->horizontalLines[h2].line;
|
||||
top = bottom.getParallelLine(idealPixelHeight);
|
||||
missingSegmentPenalty++;
|
||||
//confidenceDiff += (1.0 - this->plateLines->horizontalLines[h2].confidence);
|
||||
}
|
||||
else if (h1 != NO_LINE && h2 == NO_LINE)
|
||||
{
|
||||
top = this->plateLines->horizontalLines[h1].line;
|
||||
bottom = top.getParallelLine(-1 * idealPixelHeight);
|
||||
missingSegmentPenalty++;
|
||||
//confidenceDiff += (1.0 - this->plateLines->horizontalLines[h1].confidence);
|
||||
}
|
||||
|
||||
scoreKeeper.setScore("SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL", missingSegmentPenalty, SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL);
|
||||
//scoreKeeper.setScore("SCORING_LINE_CONFIDENCE_WEIGHT", confidenceDiff, SCORING_LINE_CONFIDENCE_WEIGHT);
|
||||
|
||||
|
||||
// Make sure that the top and bottom lines are above and below
|
||||
|
||||
Reference in New Issue
Block a user