3
|
(¸]Ê ã @ s d dl ZG dd deZdS )é Nc @ s( e Zd ZdZdd Zdd Zdd ZdS ) Ú Detectionat
|
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.
|
|
c C s2 t j|t jd| _t|| _t j|t jd| _d S )N)Údtype)ÚnpÚasarrayÚfloatÚtlwhÚ
|
confidenceÚfloat32Úfeature)Úselfr r r
|
|