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

Method __init__

yolox/deepsort_tracker/track.py:62–78  ·  view source on GitHub ↗
(self, mean, covariance, track_id, class_id, n_init, max_age,
                 feature=None)

Source from the content-addressed store, hash-verified

60 """
61
62 def __init__(self, mean, covariance, track_id, class_id, n_init, max_age,
63 feature=None):
64 self.mean = mean
65 self.covariance = covariance
66 self.track_id = track_id
67 self.class_id = class_id
68 self.hits = 1
69 self.age = 1
70 self.time_since_update = 0
71
72 self.state = TrackState.Tentative
73 self.features = []
74 if feature is not None:
75 self.features.append(feature)
76
77 self._n_init = n_init
78 self._max_age = max_age
79
80 def to_tlwh(self):
81 """Get current position in bounding box format `(top left x, top left y,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected