Removed unused variable and comments

This commit is contained in:
Matt Hill
2016-03-05 15:42:18 -05:00
parent 6ff0a258aa
commit 4b834104af

View File

@@ -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