(self, tlwh, score, max_n_features=100, from_det=True)
| 19 | class 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: |
nothing calls this directly
no outgoing calls
no test coverage detected