fixed parallel line being added in wrong direction

This commit is contained in:
Matt Hill
2016-03-11 17:17:47 -05:00
parent 515ec50469
commit 067bfc00a2

View File

@@ -274,7 +274,7 @@ namespace alpr
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 + extra_vertical_pixels); bottom = top.getParallelLine(-1 * idealPixelHeight - extra_vertical_pixels);
missingSegmentPenalty++; missingSegmentPenalty++;
} }