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

Method tlbr

tutorials/ctracker/byte_tracker.py:107–113  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected