From 6ff0a258aaf6dc8627e95e9329e85efa271616a3 Mon Sep 17 00:00:00 2001 From: SunAriesCN <281614085@qq.com> Date: Wed, 2 Mar 2016 14:41:53 +0800 Subject: [PATCH] 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 --- src/openalpr/edges/platecorners.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openalpr/edges/platecorners.cpp b/src/openalpr/edges/platecorners.cpp index a67f969..755b48b 100644 --- a/src/openalpr/edges/platecorners.cpp +++ b/src/openalpr/edges/platecorners.cpp @@ -257,28 +257,28 @@ namespace alpr bottom = tlc.centerHorizontalLine.getParallelLine(-1 * idealPixelHeight / 2 ); missingSegmentPenalty = 2; - confidenceDiff += 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); + //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); + //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); + //confidenceDiff += (1.0 - this->plateLines->horizontalLines[h1].confidence); } scoreKeeper.setScore("SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL", missingSegmentPenalty, SCORING_MISSING_SEGMENT_PENALTY_HORIZONTAL);