Skip to content

Commit 9325d00

Browse files
authored
Merge pull request #32 from cansik/list-input
Fixes bug if python lists are used to update the centroid tracker
2 parents 8505ca9 + bfe5b15 commit 9325d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: motrackers/tracker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def update(self, bboxes, detection_scores, class_ids):
144144

145145
if len(track_ids):
146146
track_centroids = np.array([self.tracks[tid].centroid for tid in track_ids])
147-
detection_centroids = get_centroid(bboxes)
147+
detection_centroids = get_centroid(np.asarray(bboxes))
148148

149149
centroid_distances = distance.cdist(track_centroids, detection_centroids)
150150

0 commit comments

Comments
 (0)