|
|
@@ -774,9 +774,7 @@ class EventDrivenCoordinator(Coordinator):
|
|
|
frame_size = (frame.shape[1], frame.shape[0])
|
|
|
detections = self._detect_persons(frame)
|
|
|
if detections:
|
|
|
- # 为检测结果分配临时序号
|
|
|
- for idx, det in enumerate(detections):
|
|
|
- det.track_id = idx
|
|
|
+ # 更新跟踪目标(track_id 在此方法内分配)
|
|
|
self._update_tracking_targets(detections, frame_size)
|
|
|
self._process_current_target(frame, frame_size)
|
|
|
|