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

Method update

tutorials/fairmot/byte_tracker.py:82–99  ·  view source on GitHub ↗

Update a matched track :type new_track: STrack :type frame_id: int :type update_feature: bool :return:

(self, new_track, frame_id)

Source from the content-addressed store, hash-verified

80 self.score = new_track.score
81
82 def update(self, new_track, frame_id):
83 """
84 Update a matched track
85 :type new_track: STrack
86 :type frame_id: int
87 :type update_feature: bool
88 :return:
89 """
90 self.frame_id = frame_id
91 self.tracklet_len += 1
92
93 new_tlwh = new_track.tlwh
94 self.mean, self.covariance = self.kalman_filter.update(
95 self.mean, self.covariance, self.tlwh_to_xyah(new_tlwh))
96 self.state = TrackState.Tracked
97 self.is_activated = True
98
99 self.score = new_track.score
100
101 @property
102 # @jit(nopython=True)

Callers 2

re_activateMethod · 0.45
updateMethod · 0.45

Calls 1

tlwh_to_xyahMethod · 0.95

Tested by

no test coverage detected