mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 01:52:45 +08:00
Fixed bug on plate corner detection, the parallel line was flipped left to right
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user