MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / __init__

Method __init__

tutorials/cstrack/tracker.py:23–37  ·  view source on GitHub ↗
(self, tlwh, score, temp_feat, buffer_size=30)

Source from the content-addressed store, hash-verified

21class STrack(BaseTrack):
22 shared_kalman = KalmanFilter()
23 def __init__(self, tlwh, score, temp_feat, buffer_size=30):
24
25 # wait activate
26 self._tlwh = np.asarray(tlwh, dtype=np.float)
27 self.kalman_filter = None
28 self.mean, self.covariance = None, None
29 self.is_activated = False
30
31 self.score = score
32 self.tracklet_len = 0
33
34 self.smooth_feat = None
35 self.update_features(temp_feat)
36 self.features = deque([], maxlen=buffer_size)
37 self.alpha = 0.9
38
39 def update_features(self, feat):
40 feat /= np.linalg.norm(feat)

Callers

nothing calls this directly

Calls 1

update_featuresMethod · 0.95

Tested by

no test coverage detected