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

Method tlwh

tutorials/cstrack/byte_tracker.py:98–107  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected