mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 00:46:49 +08:00
Handled a crash condition when no plate candidates score above the minimum threshold
This commit is contained in:
@@ -220,6 +220,8 @@ namespace alpr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sorted_results.size() > 0)
|
||||||
|
{
|
||||||
// Figure out the best region for this cluster
|
// Figure out the best region for this cluster
|
||||||
ResultRegionScore regionResults = findBestRegion(clusters[unique_plate_idx]);
|
ResultRegionScore regionResults = findBestRegion(clusters[unique_plate_idx]);
|
||||||
|
|
||||||
@@ -243,6 +245,7 @@ namespace alpr
|
|||||||
}
|
}
|
||||||
|
|
||||||
response.results.plates.push_back(copyResult);
|
response.results.plates.push_back(copyResult);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user