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

@@ -46,7 +46,6 @@ namespace alpr
{
charSegmenter = NULL;
pipeline_data->plate_area_confidence = 0;
pipeline_data->isMultiline = config->multiline;
@@ -58,14 +57,14 @@ namespace alpr
CharacterAnalysis textAnalysis(pipeline_data);
if (textAnalysis.confidence > 10)
if (!pipeline_data->disqualified)
{
EdgeFinder edgeFinder(pipeline_data);
pipeline_data->plate_corners = edgeFinder.findEdgeCorners();
if (edgeFinder.confidence > 0)
if (!pipeline_data->disqualified)
{
timespec startTime;
@@ -120,7 +119,6 @@ namespace alpr
charSegmenter = new CharacterSegmenter(pipeline_data);
pipeline_data->plate_area_confidence = 100;
}
}