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

Method tlwh

tutorials/cstrack/tracker.py:116–125  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected