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

Method tlwh

tutorials/jde/byte_tracker.py:88–97  ·  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

86
87 @property
88 def tlwh(self):
89 """Get current position in bounding box format `(top left x, top left y,
90 width, height)`.
91 """
92 if self.mean is None:
93 return self._tlwh.copy()
94 ret = self.mean[:4].copy()
95 ret[2] *= ret[3]
96 ret[:2] -= ret[2:] / 2
97 return ret
98
99 @property
100 def tlbr(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected