mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 22:22:50 +08:00
Removed nested ifs, replaced with return if invalid
This commit is contained in:
@@ -57,15 +57,15 @@ namespace alpr
|
|||||||
|
|
||||||
CharacterAnalysis textAnalysis(pipeline_data);
|
CharacterAnalysis textAnalysis(pipeline_data);
|
||||||
|
|
||||||
if (!pipeline_data->disqualified)
|
if (pipeline_data->disqualified)
|
||||||
{
|
return;
|
||||||
|
|
||||||
EdgeFinder edgeFinder(pipeline_data);
|
EdgeFinder edgeFinder(pipeline_data);
|
||||||
|
|
||||||
pipeline_data->plate_corners = edgeFinder.findEdgeCorners();
|
pipeline_data->plate_corners = edgeFinder.findEdgeCorners();
|
||||||
|
|
||||||
if (!pipeline_data->disqualified)
|
if (pipeline_data->disqualified)
|
||||||
{
|
return;
|
||||||
|
|
||||||
timespec startTime;
|
timespec startTime;
|
||||||
getTimeMonotonic(&startTime);
|
getTimeMonotonic(&startTime);
|
||||||
@@ -121,7 +121,5 @@ namespace alpr
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user