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

Method tlwh

tutorials/jde/tracker.py:107–116  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected