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
- delete objects from trackers
- update the bounding box (not by trackers.update(frame) but by manual bounding box values) ?
Thank you for your time!