Fixed bug on plate corner detection, the parallel line was flipped left to right

This commit is contained in:
Matt Hill
2014-10-19 19:39:45 -04:00
parent be99e8219b
commit 1d8321f4f2

View File

@@ -139,8 +139,8 @@ void PlateCorners::scoreVerticals(int v1, int v2)
{ {
//return; //return;
left = tlc.centerVerticalLine.getParallelLine(idealPixelWidth / 2); left = tlc.centerVerticalLine.getParallelLine(-1 * idealPixelWidth / 2);
right = tlc.centerVerticalLine.getParallelLine(-1 * idealPixelWidth / 2 ); right = tlc.centerVerticalLine.getParallelLine(idealPixelWidth / 2 );
missingSegmentPenalty += SCORING_MISSING_SEGMENT_PENALTY_VERTICAL * 2; missingSegmentPenalty += SCORING_MISSING_SEGMENT_PENALTY_VERTICAL * 2;
confidenceDiff += 2; confidenceDiff += 2;