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

Method tlwh

tutorials/trades/byte_tracker.py:93–102  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected