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

Method tlbr

tutorials/cstrack/byte_tracker.py:111–117  ·  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

109 @property
110 # @jit(nopython=True)
111 def tlbr(self):
112 """Convert bounding box to format `(min x, min y, max x, max y)`, i.e.,
113 `(top left, bottom right)`.
114 """
115 ret = self.tlwh.copy()
116 ret[2:] += ret[:2]
117 return ret
118
119 @staticmethod
120 # @jit(nopython=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected