7 This class represents a bounding box detection in a single image. 12 Bounding box in format `(x, y, w, h)`. 14 Detector confidence score. 16 A feature vector that describes the object contained in this image. 21 Bounding box in format `(top left x, top left y, width, height)`. 23 Detector confidence score. 24 feature : ndarray | NoneType 25 A feature vector that describes the object contained in this image. 30 self.
tlwh = np.asarray(tlwh, dtype=np.float)
32 self.
feature = np.asarray(feature, dtype=np.float32)
35 """Convert bounding box to format `(min x, min y, max x, max y)`, i.e., 36 `(top left, bottom right)`. 38 ret = self.tlwh.copy()
43 """Convert bounding box to format `(center x, center y, aspect ratio, 44 height)`, where the aspect ratio is `width / height`. 46 ret = self.tlwh.copy()
47 ret[:2] += ret[2:] / 2
def __init__(self, tlwh, confidence, feature)