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

Method tlbr

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

98
99 @property
100 def tlbr(self):
101 """Convert bounding box to format `(min x, min y, max x, max y)`, i.e.,
102 `(top left, bottom right)`.
103 """
104 ret = self.tlwh.copy()
105 ret[2:] += ret[:2]
106 return ret
107
108 @staticmethod
109 def tlwh_to_xyah(tlwh):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected