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

Method tlwh

tutorials/ctracker/byte_tracker.py:94–103  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected