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

Method update

tutorials/cstrack/byte_tracker.py:77–94  ·  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

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