mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 19:52: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);
|
||||
|
||||
if (!pipeline_data->disqualified)
|
||||
{
|
||||
if (pipeline_data->disqualified)
|
||||
return;
|
||||
|
||||
EdgeFinder edgeFinder(pipeline_data);
|
||||
|
||||
pipeline_data->plate_corners = edgeFinder.findEdgeCorners();
|
||||
|
||||
if (!pipeline_data->disqualified)
|
||||
{
|
||||
if (pipeline_data->disqualified)
|
||||
return;
|
||||
|
||||
timespec startTime;
|
||||
getTimeMonotonic(&startTime);
|
||||
@@ -121,7 +121,5 @@ namespace alpr
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user