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

Method tlwh

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

123 @property
124 # @jit(nopython=True)
125 def tlwh(self):
126 """Get current position in bounding box format `(top left x, top left y,
127 width, height)`.
128 """
129 if self.mean is None:
130 return self._tlwh.copy()
131 ret = self.mean[:4].copy()
132 ret[2] *= ret[3]
133 ret[:2] -= ret[2:] / 2
134 return ret
135
136 @property
137 # @jit(nopython=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected