mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 01:42:49 +08:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user