def update(self,bbox,img):
self.time_since_update = 0
self.hits += 1
self.hit_streak += 1
'''re-start the tracker with detected positions (it detector was active)'''
if bbox != []:
self.tracker.start_track(img, rectangle(long(bbox[0]), long(bbox[1]), long(bbox[2]), long(bbox[3])))
'''
Note: another approach is to re-start the tracker only when the correlation score fall below some threshold
i.e.: if bbox !=[] and self.confidence < 10.
but this will reduce the algo. ability to track objects through longer periods of occlusions.
'''
correlation_tracker.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录