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

Method tlbr

tutorials/fairmot/byte_tracker.py:116–122  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected