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

Method tlwh

tutorials/qdtrack/tracker_reid_motion.py:112–121  ·  view source on GitHub ↗

Get current position in bounding box format `(top left x, top left y, width, height)`.

(self)

Source from the content-addressed store, hash-verified

110 @property
111 # @jit(nopython=True)
112 def tlwh(self):
113 """Get current position in bounding box format `(top left x, top left y,
114 width, height)`.
115 """
116 if self.mean is None:
117 return self._tlwh.copy()
118 ret = self.mean[:4].copy()
119 ret[2] *= ret[3]
120 ret[:2] -= ret[2:] / 2
121 return ret
122
123 @property
124 # @jit(nopython=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected