fix reassigning track_id after a track is re-activated.

This commit is contained in:
Raif Olson
2024-04-11 08:21:26 -04:00
parent 2c9a1f69c5
commit 6166d92458
+1 -1
View File
@@ -98,7 +98,7 @@ class STrack(BaseTrack):
self.mean, self.covariance, self.tlwh_to_xyah(new_tlwh)
)
self.state = TrackState.Tracked
if self.tracklet_len == self.minimum_consecutive_frames:
if self.tracklet_len == self.minimum_consecutive_frames and not self.is_activated:
self.is_activated = True
self.external_track_id = self.next_external_id()