Public Member Functions | Public Attributes | List of all members
deep_sort.detection.Detection Class Reference
Inheritance diagram for deep_sort.detection.Detection:
Inheritance graph
[legend]

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]
 

Detailed Description

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.

Constructor & Destructor Documentation

def deep_sort.detection.Detection.__init__ (   self,
  tlwh,
  confidence,
  feature 
)

Definition at line 29 of file detection.py.

Member Function Documentation

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.

Member Data Documentation

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.


The documentation for this class was generated from the following file:


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Mon May 3 2021 03:03:27