remove the variables unused

Though I'm not understand why codes about the SCORING_LINE_CONFIDENCE_WEIGHT in 270th line have been disable,  nor the bad results I get when I tryed to enable this line, I know codes shoulld be clean. (^ - ^ ) Y
This commit is contained in:
SunAriesCN
2016-03-02 14:41:53 +08:00
parent 4e8855833d
commit 6ff0a258aa

View File

@@ -257,28 +257,28 @@ namespace alpr
bottom = tlc.centerHorizontalLine.getParallelLine(-1 * idealPixelHeight / 2 ); bottom = tlc.centerHorizontalLine.getParallelLine(-1 * idealPixelHeight / 2 );
missingSegmentPenalty = 2; missingSegmentPenalty = 2;
confidenceDiff += 2; //confidenceDiff += 2;
} }
else if (h1 != NO_LINE && h2 != NO_LINE) else if (h1 != NO_LINE && h2 != NO_LINE)
{ {
top = this->plateLines->horizontalLines[h1].line; top = this->plateLines->horizontalLines[h1].line;
bottom = this->plateLines->horizontalLines[h2].line; bottom = this->plateLines->horizontalLines[h2].line;
confidenceDiff += (1.0 - this->plateLines->horizontalLines[h1].confidence); //confidenceDiff += (1.0 - this->plateLines->horizontalLines[h1].confidence);
confidenceDiff += (1.0 - this->plateLines->horizontalLines[h2].confidence); //confidenceDiff += (1.0 - this->plateLines->horizontalLines[h2].confidence);
} }
else if (h1 == NO_LINE && h2 != NO_LINE) else if (h1 == NO_LINE && h2 != NO_LINE)
{ {
bottom = this->plateLines->horizontalLines[h2].line; bottom = this->plateLines->horizontalLines[h2].line;
top = bottom.getParallelLine(idealPixelHeight); top = bottom.getParallelLine(idealPixelHeight);
missingSegmentPenalty++; missingSegmentPenalty++;
confidenceDiff += (1.0 - this->plateLines->horizontalLines[h2].confidence); //confidenceDiff += (1.0 - this->plateLines->horizontalLines[h2].confidence);
} }
else if (h1 != NO_LINE && h2 == NO_LINE) else if (h1 != NO_LINE && h2 == NO_LINE)
{ {
top = this->plateLines->horizontalLines[h1].line; top = this->plateLines->horizontalLines[h1].line;
bottom = top.getParallelLine(-1 * idealPixelHeight); bottom = top.getParallelLine(-1 * idealPixelHeight);
missingSegmentPenalty++; missingSegmentPenalty++;
confidenceDiff += (1.0 - this->plateLines->horizontalLines[h1].confidence); //confidenceDiff += (1.0 - this->plateLines->horizontalLines[h1].confidence);
} }
scoreKeeper.setScore("SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL", missingSegmentPenalty, SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL); scoreKeeper.setScore("SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL", missingSegmentPenalty, SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL);