Builds the tracker_control list of video_detect_dl(). Arguments left as NULL
take the value of the chosen tracker, shown in the table below.
Usage
video_tracker_control(
motion = NULL,
assignment = NULL,
second_pass = NULL,
oru = NULL,
ocm = NULL,
ocr = NULL,
fuse_score = NULL,
distance_stage = NULL,
high_thresh = NULL,
low_thresh = NULL,
new_track_thresh = NULL,
match_iou = NULL,
second_iou = NULL,
max_lost = NULL,
max_dist = NULL,
delta_t = NULL,
inertia = NULL
)Arguments
- motion
Motion model,
"linear"(exponentially smoothed constant velocity) or"kalman"(constant-velocity Kalman filter on centre, width and height).- assignment
"greedy"or"hungarian"(optimal).- second_pass
ByteTrack second association of low-score detections. Tracks seen only once are then removed as soon as they miss a frame.
- oru, ocm, ocr
OC-SORT observation-centric re-update, momentum and recovery.
oruneedsmotion = "kalman".- fuse_score
Multiply the IoU by the detection score in the first association.
- distance_stage
Add a final centroid-distance association (within
max_dist), useful for small or fast objects whose boxes do not overlap between frames.- high_thresh
Score from which a detection takes part in the main association. Defaults to
conf_threshold.- low_thresh
Lowest score used by the second pass (default 0.1).
- new_track_thresh
Score needed to start a track. Defaults to
high_thresh.- match_iou
Minimum IoU (times the score if
fuse_score) of the main association.- second_iou
Minimum IoU of the ByteTrack second pass (default 0.5).
- max_lost
Inferred frames an unmatched track is kept.
- max_dist
Largest centroid distance, in pixels, of the distance stage (default 150; the
"simple"tracker does not use values below 150).- delta_t
Observation interval used to estimate the direction of motion (
ocm).- inertia
Weight of the direction consistency term (
ocm).
Details
| setting | ocsort_byte (default) | ocsort | bytetrack | sort | simple |
motion | kalman | kalman | kalman | kalman | linear |
assignment | hungarian | hungarian | hungarian | hungarian | greedy |
second_pass | TRUE | FALSE | TRUE | FALSE | FALSE |
oru, ocm, ocr | TRUE | TRUE | FALSE | FALSE | FALSE |
fuse_score | FALSE | FALSE | TRUE | FALSE | FALSE |
distance_stage | FALSE | FALSE | FALSE | FALSE | TRUE |
match_iou | 0.3 | 0.3 | 0.2 | 0.3 | 0.25 |
max_lost | 30 | 30 | 30 | 30 | 15 |
