Skip to contents

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. oru needs motion = "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).

Value

A named list with the settings that were supplied.

Details

settingocsort_byte (default)ocsortbytetracksortsimple
motionkalmankalmankalmankalmanlinear
assignmenthungarianhungarianhungarianhungariangreedy
second_passTRUEFALSETRUEFALSEFALSE
oru, ocm, ocrTRUETRUEFALSEFALSEFALSE
fuse_scoreFALSEFALSETRUEFALSEFALSE
distance_stageFALSEFALSEFALSEFALSETRUE
match_iou0.30.30.20.30.25
max_lost3030303015

Examples

video_tracker_control(max_lost = 60, low_thresh = 0.05)
#> $low_thresh
#> [1] 0.05
#> 
#> $max_lost
#> [1] 60
#>