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

Class BaseTrack

yolox/tracker/basetrack.py:12–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class BaseTrack(object):
13 _count = 0
14
15 track_id = 0
16 is_activated = False
17 state = TrackState.New
18
19 history = OrderedDict()
20 features = []
21 curr_feature = None
22 score = 0
23 start_frame = 0
24 frame_id = 0
25 time_since_update = 0
26
27 # multi-camera
28 location = (np.inf, np.inf)
29
30 @property
31 def end_frame(self):
32 return self.frame_id
33
34 @staticmethod
35 def next_id():
36 BaseTrack._count += 1
37 return BaseTrack._count
38
39 def activate(self, *args):
40 raise NotImplementedError
41
42 def predict(self):
43 raise NotImplementedError
44
45 def update(self, *args, **kwargs):
46 raise NotImplementedError
47
48 def mark_lost(self):
49 self.state = TrackState.Lost
50
51 def mark_removed(self):
52 self.state = TrackState.Removed

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected