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

Method tlbr

tutorials/cstrack/tracker.py:129–135  ·  view source on GitHub ↗

Convert bounding box to format `(min x, min y, max x, max y)`, i.e., `(top left, bottom right)`.

(self)

Source from the content-addressed store, hash-verified

127 @property
128 # @jit(nopython=True)
129 def tlbr(self):
130 """Convert bounding box to format `(min x, min y, max x, max y)`, i.e.,
131 `(top left, bottom right)`.
132 """
133 ret = self.tlwh.copy()
134 ret[2:] += ret[:2]
135 return ret
136
137 @staticmethod
138 # @jit(nopython=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected