|
|
@ -43,6 +43,9 @@ def update_tracker(target_detector, image):
|
|
|
|
|
|
|
|
|
|
|
|
bbox_xywh = []
|
|
|
|
bbox_xywh = []
|
|
|
|
confs = []
|
|
|
|
confs = []
|
|
|
|
|
|
|
|
bboxes2draw = []
|
|
|
|
|
|
|
|
face_bboxes = []
|
|
|
|
|
|
|
|
if len(bboxes):
|
|
|
|
|
|
|
|
|
|
|
|
# Adapt detections to deep sort input format
|
|
|
|
# Adapt detections to deep sort input format
|
|
|
|
for x1, y1, x2, y2, _, conf in bboxes:
|
|
|
|
for x1, y1, x2, y2, _, conf in bboxes:
|
|
|
@ -60,9 +63,6 @@ def update_tracker(target_detector, image):
|
|
|
|
# Pass detections to deepsort
|
|
|
|
# Pass detections to deepsort
|
|
|
|
outputs = deepsort.update(xywhs, confss, image)
|
|
|
|
outputs = deepsort.update(xywhs, confss, image)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bboxes2draw = []
|
|
|
|
|
|
|
|
face_bboxes = []
|
|
|
|
|
|
|
|
for value in list(outputs):
|
|
|
|
for value in list(outputs):
|
|
|
|
x1,y1,x2,y2,track_id = value
|
|
|
|
x1,y1,x2,y2,track_id = value
|
|
|
|
bboxes2draw.append(
|
|
|
|
bboxes2draw.append(
|
|
|
|