File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " trackers"
3
- version = " 2.0.1 "
3
+ version = " 2.0.2rc0 "
4
4
description = " A unified library for object tracking featuring clean room re-implementations of leading multi-object tracking algorithms"
5
5
readme = " README.md"
6
6
authors = [
@@ -37,7 +37,7 @@ dependencies = [
37
37
" aiofiles>=24.1.0" ,
38
38
" aiohttp>=3.11.16" ,
39
39
" numpy>=2.0.2" ,
40
- " supervision>=0.26.0rc7 " ,
40
+ " supervision>=0.26.1 " ,
41
41
" tqdm>=4.67.1" ,
42
42
" validators>=0.34.0" ,
43
43
" scipy>=1.13.1" ,
Original file line number Diff line number Diff line change 3
3
4
4
import numpy as np
5
5
import supervision as sv
6
- from supervision .detection .utils import box_iou_batch
7
6
8
7
from trackers .core .deepsort .kalman_box_tracker import DeepSORTKalmanBoxTracker
9
8
from trackers .core .sort .kalman_box_tracker import SORTKalmanBoxTracker
@@ -63,7 +62,7 @@ def get_iou_matrix(
63
62
predicted_boxes = np .zeros ((len (trackers ), 4 ), dtype = np .float32 )
64
63
65
64
if len (trackers ) > 0 and len (detection_boxes ) > 0 :
66
- iou_matrix = box_iou_batch (predicted_boxes , detection_boxes )
65
+ iou_matrix = sv . box_iou_batch (predicted_boxes , detection_boxes )
67
66
else :
68
67
iou_matrix = np .zeros ((len (trackers ), len (detection_boxes )), dtype = np .float32 )
69
68
@@ -109,7 +108,7 @@ def update_detections_with_track_ids(
109
108
predicted_boxes = np .zeros ((len (trackers ), 4 ), dtype = np .float32 )
110
109
111
110
if len (trackers ) > 0 and len (detection_boxes ) > 0 :
112
- iou_matrix_final = box_iou_batch (predicted_boxes , detection_boxes )
111
+ iou_matrix_final = sv . box_iou_batch (predicted_boxes , detection_boxes )
113
112
114
113
row_indices , col_indices = np .where (iou_matrix_final > minimum_iou_threshold )
115
114
sorted_pairs = sorted (
You can’t perform that action at this time.
0 commit comments