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

Method to_xyah

yolox/deepsort_tracker/detection.py:39–46  ·  view source on GitHub ↗

Convert bounding box to format `(center x, center y, aspect ratio, height)`, where the aspect ratio is `width / height`.

(self)

Source from the content-addressed store, hash-verified

37 return ret
38
39 def to_xyah(self):
40 """Convert bounding box to format `(center x, center y, aspect ratio,
41 height)`, where the aspect ratio is `width / height`.
42 """
43 ret = self.tlwh.copy()
44 ret[:2] += ret[2:] / 2
45 ret[2] /= ret[3]
46 return ret

Callers 3

_initiate_trackMethod · 0.45
updateMethod · 0.45
gate_cost_matrixFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected