3
|
~Â] ã @ sV d dl mZ d dlZddlmZ ddlmZ ddlmZ ddlm Z G dd d Z
|
dS )
|
é )Úabsolute_importNé )Ú kalman_filter)Úlinear_assignment)Úiou_matching)ÚTrackc @ s: e Zd ZdZdddZdd Zd d
|
Zdd Zd d ZdS )ÚTrackeraà
|
This is the multi-target tracker.
|
|
Parameters
|
----------
|
metric : nn_matching.NearestNeighborDistanceMetric
|
A distance metric for measurement-to-track association.
|
max_age : int
|
Maximum number of missed misses before a track is deleted.
|
n_init : int
|
Number of consecutive detections before the track is confirmed. The
|
track state is set to `Deleted` if a miss occurs within the first
|
`n_init` frames.
|
|
Attributes
|
----------
|
metric : nn_matching.NearestNeighborDistanceMetric
|
The distance metric used for measurement to track association.
|
max_age : int
|
Maximum number of missed misses before a track is deleted.
|
n_init : int
|
Number of frames that a track remains in initialization phase.
|
kf : kalman_filter.KalmanFilter
|
A Kalman filter to filter target trajectories in image space.
|
tracks : List[Track]
|
The list of active tracks at the current time step.
|
|
çffffffæ?é, é c C s2 || _ || _|| _|| _tj | _g | _d| _d S )Nr ) ÚmetricÚmax_iou_distanceÚmax_ageÚn_initr ZKalmanFilterÚkfÚtracksÚ_next_id)Úselfr r r r © r úHD:\project\07_tracking_Re-id\04_s_yolo_tracking\lib\deep_sort\tracker.pyÚ__init__( s
|
zTracker.__init__c C s |