fix reassigning track_id after a track is re-activated.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user