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

Method tlbr

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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected