MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / __init__

Method __init__

yolox/motdt_tracker/motdt_tracker.py:21–41  ·  view source on GitHub ↗
(self, tlwh, score, max_n_features=100, from_det=True)

Source from the content-addressed store, hash-verified

19class STrack(BaseTrack):
20
21 def __init__(self, tlwh, score, max_n_features=100, from_det=True):
22
23 # wait activate
24 self._tlwh = np.asarray(tlwh, dtype=np.float)
25 self.kalman_filter = None
26 self.mean, self.covariance = None, None
27 self.is_activated = False
28
29 self.score = score
30 self.max_n_features = max_n_features
31 self.curr_feature = None
32 self.last_feature = None
33 self.features = deque([], maxlen=self.max_n_features)
34
35 # classification
36 self.from_det = from_det
37 self.tracklet_len = 0
38 self.time_by_tracking = 0
39
40 # self-tracking
41 self.tracker = None
42
43 def set_feature(self, feature):
44 if feature is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected