correlation_tracker.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:experimenting-with-sort 作者: ZidanMusk 项目源码 文件源码
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.
    '''
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号