Skip to content

Commit

Permalink
changed new detections format
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh1993 authored Dec 24, 2019
1 parent 3da8cfc commit 8696fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multitracker/multitracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def remove_trackers(self,obselete_trackers):
def merge_trackers(self, img, detections):
obselete_trackers = []
mapped_trackers = {}
new_detections = []
new_detections = {}

points = map(self.detection2bbox,detections)
trackers = self.trackers
Expand All @@ -91,8 +91,8 @@ def merge_trackers(self, img, detections):
##Add new tracker for new detections:
for i in range(len(points)):
if i not in covered_points:
new_detections.append(detections[i])
trackerid=self.add_tracker(img,detections[i])
new_detections[trackerid] = {"index":i,"box":detections[i]}
mapped_trackers[trackerid] = {"index":i,"box":detections[i]}

##Obselete_trackers:
Expand Down

0 comments on commit 8696fdc

Please sign in to comment.