Public Member Functions | |
def | __init__ |
def | to_tlbr |
def | to_xyah |
Public Attributes | |
confidence | |
feature | |
tlwh |
This class represents a bounding box detection in a single image. Parameters ---------- tlwh : array_like Bounding box in format `(x, y, w, h)`. confidence : float Detector confidence score. feature : array_like A feature vector that describes the object contained in this image. Attributes ---------- tlwh : ndarray Bounding box in format `(top left x, top left y, width, height)`. confidence : ndarray Detector confidence score. feature : ndarray | NoneType A feature vector that describes the object contained in this image.
Definition at line 5 of file detection.py.
def deep_sort.detection.Detection.__init__ | ( | self, | |
tlwh, | |||
confidence, | |||
feature | |||
) |
Definition at line 29 of file detection.py.
def deep_sort.detection.Detection.to_tlbr | ( | self | ) |
Convert bounding box to format `(min x, min y, max x, max y)`, i.e., `(top left, bottom right)`.
Definition at line 34 of file detection.py.
def deep_sort.detection.Detection.to_xyah | ( | self | ) |
Convert bounding box to format `(center x, center y, aspect ratio, height)`, where the aspect ratio is `width / height`.
Definition at line 42 of file detection.py.
Definition at line 29 of file detection.py.
Definition at line 29 of file detection.py.
Definition at line 29 of file detection.py.