def createNewTracks(self, unassignedDetections, detection):
global tracker_id
print detection
print unassignedDetections
bboxes = detection[unassignedDetections,:]
n = bboxes.shape[0]
for i in xrange(n):
bbox = bboxes[i,:].tolist()
track = Track(tracker_id, bbox, dlib.correlation_tracker())
tracker_id += 1
self.tracks.append(track)
# delete below!!!
评论列表
文章目录