(self, box, mode="whwh")
| 68 | |
| 69 | class Bbox: |
| 70 | def __init__(self, box, mode="whwh"): |
| 71 | |
| 72 | assert len(box) == 4 |
| 73 | assert mode in ["whwh", "xywh"] |
| 74 | self.box = box |
| 75 | self.mode = mode |
| 76 | |
| 77 | def to_xywh(self): |
| 78 |
nothing calls this directly
no outgoing calls
no test coverage detected