MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / update

Method update

tutorials/ctracker/byte_tracker.py:73–90  ·  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

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