Convert bounding box to format `(center x, center y, aspect ratio, height)`, where the aspect ratio is `width / height`.
(self)
| 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 |
no outgoing calls
no test coverage detected