small fix

This commit is contained in:
Brenno
2021-04-21 13:46:10 -03:00
parent 4d9d6ece9a
commit f412cae5c6

View File

@@ -165,9 +165,8 @@ std::shared_ptr<Frame> ObjectDetection::GetFrame(std::shared_ptr<Frame> frame, i
Clip* childClip = parentTimeline->GetClip(trackedObject->ChildClipId());
if (childClip){
std::shared_ptr<Frame> f(new Frame(1, frame->GetWidth(), frame->GetHeight(), "#00000000"));
std::shared_ptr<Frame> childClipFrame = childClip->GetFrame(f, frame_number);
// Get the image of the child clip for this frame
std::shared_ptr<Frame> childClipFrame = childClip->GetFrame(frame_number);
std::shared_ptr<Frame> childClipFrame = childClip->GetFrame(f, frame_number);
childClipImages.push_back(childClipFrame->GetImage());
// Set the Qt rectangle with the bounding-box properties