
Public Member Functions | |
| def | __init__ (self, tlwh, confidence, feature) |
| def | to_tlbr (self) |
| def | to_xyah (self) |
Public Attributes | |
| confidence | |
| feature | |
| tlwh | |
Public Attributes inherited from object | |
| pointer | iv [2] |
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.
| deep_sort.detection.Detection.confidence |
Definition at line 31 of file detection.py.
| deep_sort.detection.Detection.feature |
Definition at line 32 of file detection.py.
| deep_sort.detection.Detection.tlwh |
Definition at line 30 of file detection.py.