mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 07:06:54 +08:00
Added bestplate parsing and unit test
This commit is contained in:
@@ -451,6 +451,11 @@ AlprResults AlprImpl::fromJson(std::string json) {
|
||||
plateCandidate.matches_template = (cJSON_GetObjectItem(candidate, "matches_template")->valueint) != 0;
|
||||
|
||||
plate.topNPlates.push_back(plateCandidate);
|
||||
|
||||
if (c == 0)
|
||||
{
|
||||
plate.bestPlate = plateCandidate;
|
||||
}
|
||||
}
|
||||
|
||||
allResults.plates.push_back(plate);
|
||||
|
Reference in New Issue
Block a user