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

Method update

tutorials/transtrack/mot_online/byte_tracker.py:71–88  ·  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

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

Callers 5

train_one_epochFunction · 0.45
evaluateFunction · 0.45
evaluate_trackFunction · 0.45
re_activateMethod · 0.45
updateMethod · 0.45

Calls 1

tlwh_to_xyahMethod · 0.95

Tested by

no test coverage detected