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

Method update

tutorials/trades/byte_tracker.py:72–89  ·  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

70 self.score = new_track.score
71
72 def update(self, new_track, frame_id):
73 """
74 Update a matched track
75 :type new_track: STrack
76 :type frame_id: int
77 :type update_feature: bool
78 :return:
79 """
80 self.frame_id = frame_id
81 self.tracklet_len += 1
82
83 new_tlwh = new_track.tlwh
84 self.mean, self.covariance = self.kalman_filter.update(
85 self.mean, self.covariance, self.tlwh_to_xyah(new_tlwh))
86 self.state = TrackState.Tracked
87 self.is_activated = True
88
89 self.score = new_track.score
90
91 @property
92 # @jit(nopython=True)

Callers 3

re_activateMethod · 0.45
stepMethod · 0.45

Calls 1

tlwh_to_xyahMethod · 0.95

Tested by

no test coverage detected