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

Method tlwh

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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected