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

Method tlwh

yolox/tracker/byte_tracker.py:92–101  ·  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

90 @property
91 # @jit(nopython=True)
92 def tlwh(self):
93 """Get current position in bounding box format `(top left x, top left y,
94 width, height)`.
95 """
96 if self.mean is None:
97 return self._tlwh.copy()
98 ret = self.mean[:4].copy()
99 ret[2] *= ret[3]
100 ret[:2] -= ret[2:] / 2
101 return ret
102
103 @property
104 # @jit(nopython=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected