Skip to main content

Module kalman

Module kalman 

Source
Expand description

Constant-velocity Kalman filter on image boxes, as in SORT, DeepSORT and ByteTrack.

The state is (cx, cy, a, h, vcx, vcy, va, vh): box centre, aspect ratio a = w / h, height, and their per-frame velocities. The noise is scaled by the box height, so a far (small) object and a near (large) one are tracked with the same relative uncertainty.

Structs§

BoxKalmanFilter
Noise weights of the filter; the defaults are ByteTrack’s.
BoxKalmanState
Mean and covariance of one track’s box.

Functions§

box_measurement
(cx, cy, w / h, h) of a box with a positive height.

Type Aliases§

BoxCovariance
BoxState