mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 02:32:45 +08:00
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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user