Skip to content

Commit

Permalink
Fixed missing parent clip in TrackedObjectBoundingbox
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennoCaldato committed Apr 26, 2021
1 parent f412cae commit 7a9d196
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/effects/ObjectDetection.cpp
Expand Up @@ -364,7 +364,11 @@ bool ObjectDetection::LoadObjDetectdData(std::string inputFilePath){
// There is no tracked object with that id, so insert a new one
TrackedObjectBBox trackedObj((int)classesColor[classId](0), (int)classesColor[classId](1), (int)classesColor[classId](2), (int)0);
trackedObj.AddBox(id, x+(w/2), y+(h/2), w, h, 0.0);

std::shared_ptr<TrackedObjectBBox> trackedObjPtr = std::make_shared<TrackedObjectBBox>(trackedObj);
ClipBase* parentClip = this->ParentClip();
trackedObjPtr->ParentClip(parentClip);

trackedObjects.insert({objectId, trackedObjPtr});
}

Expand Down

0 comments on commit 7a9d196

Please sign in to comment.