Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to delete an object from Multitracker ?

I am working with the multitracker to track some objects.

std::string trackingAlg = "KCF";
MultiTracker trackers(trackingAlg);

I am using background subtraction technique to find the object contours and track the objects using

trackers.update(frame);

In the process, I would like to delete some objects from the trackers or update the bounding box of some objects.

I have tried something like this (as shown below) to update the object contours, but was not successful

 trackers.objects[i] = newBound_box[i];

Could anyone suggest how to

  1. delete objects from trackers
  2. update the bounding box (not by trackers.update(frame) but by manual bounding box values) ?

Thank you for your time!