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

Method tlbr

tutorials/jde/tracker.py:119–125  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected