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

Method tlbr

tutorials/qdtrack/tracker_reid_motion.py:125–131  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected