Removed unused confidence values and replaced with a disqualify boolean

The disqualify reason is purely for debugging.  This should help make it obvious why a plate candidate was rejected
This commit is contained in:
Matt Hill
2015-07-04 19:30:29 -04:00
parent be81d3ed46
commit 7a78d4a214
11 changed files with 38 additions and 24 deletions

View File

@@ -103,11 +103,16 @@ namespace alpr
// Check if a left/right edge has been established.
if (bestLeft.p1.x == 0 && bestLeft.p1.y == 0 && bestLeft.p2.x == 0 && bestLeft.p2.y == 0)
confidence = 0;
{
pipelineData->disqualified = true;
pipelineData->disqualify_reason = "platecorners did not find a left/right edge";
}
else if (bestTop.p1.x == 0 && bestTop.p1.y == 0 && bestTop.p2.x == 0 && bestTop.p2.y == 0)
confidence = 0;
else
confidence = 100;
{
pipelineData->disqualified = true;
pipelineData->disqualify_reason = "platecorners did not find a top/bottom edge";
}
vector<Point> corners;
corners.push_back(bestTop.intersection(bestLeft));