Skip to content

Commit

Permalink
Removed unnecessary Json tags
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennoCaldato committed May 11, 2021
1 parent c6ce5b0 commit 7eb23a9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/effects/ObjectDetection.cpp
Expand Up @@ -467,16 +467,6 @@ Json::Value ObjectDetection::JsonValue() const {
}
root["objects"] = objects;

// Add the selected object Json to root
if(trackedObjects.count(selectedObjectIndex) != 0){
auto selectedObject = trackedObjects.at(selectedObjectIndex);
if (selectedObject){
Json::Value selectedObjectJSON = selectedObject->JsonValue();
for (auto const& key : selectedObjectJSON.getMemberNames())
root[key] = selectedObjectJSON[key];
}
}

// return JsonValue
return root;
}
Expand Down

0 comments on commit 7eb23a9

Please sign in to comment.