Added bestplate parsing and unit test

This commit is contained in:
Matt Hill
2014-10-23 22:15:27 -04:00
parent 3984b9405e
commit 0d2141b4a1
2 changed files with 9 additions and 0 deletions

View File

@@ -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);