Python remove tracked objects
Hi, How can I delete all tracked objects and track new ones in Python? My code: code I want to remove the trackers when the "r" key is pressed. Thanks
Hi, How can I delete all tracked objects and track new ones in Python? My code: code I want to remove the trackers when the "r" key is pressed. Thanks
the old ones don't disappear.
indeed. there is a clear() function, but it is not implemented consistently for all trackers.
all you can do is -- delete the old tracker, and create a new one.
I tried to implement your solution but I can't figure out how... Here's my code if it helps Code I want to remove the trackers when the "r" key is pressed. Thanks
Asked: 2020-05-18 11:50:51 -0600
Seen: 1,540 times
Last updated: May 19 '20
How can we get the pose (transformed ROI) of non planar object given single target image?
real time tracking of a window with a video stream [closed]
cascade classifier - can not open '.xml' file [closed]
Ideal motion/object tracking method - Problems with image noise
Object Detection:Fire Hydrant and Rail Signal
Multiple simultaneous logo/target recognition/reporting
Trying to find center of contour using color-blob-detection [closed]
any chance you're talking about opencv's tracking module?
I'm not sure what you mean. I'm using the built-in tracker csrt. When testing it I noticed it sometimes loses tracking/tracked object goes off-screen. I want to combine this with YOLO object detection to create new tracking ROI (boxes around the objects) every few seconds to update the previous ones. When I do that however they start adding up, because the old ones don't disappear. Therefore my question is if there's a way to make the current tracked objects disappear. Thanks