boxmot.trackers.ocsort.config
Canonical algorithm settings for OcSort.
OcSortConfig
dataclass
OcSortConfig(
*,
max_age: int = 30,
max_obs: int = 50,
min_hits: int = 3,
iou_threshold: float = 0.3,
asso_func: str = "iou",
centroid_max_distance: float = 0.05,
min_conf: float = 0.1,
delta_t: int = 3,
inertia: float = 0.1,
use_byte: bool = False,
det_thresh: float = 0.6,
motion_fusion: str = "off",
motion_fusion_lambda: float = 0.98,
motion_fusion_only_position: bool = False,
fuse_detection_score: bool = False,
use_cmc: bool = False,
cmc_method: str = "sof",
cmc_min_conf: float | None = None,
)
Bases: TrackerConfig
Configure observation history and optional low-confidence recovery.
Shared history and association settings are inherited from TrackerConfig.
Parameters:
-
motion_fusion(str, default:'off') –First-pass Kalman association mode: off, gate, or blend.
-
motion_fusion_lambda(float, default:0.98) –Existing-cost weight when motion fusion blends costs.
-
motion_fusion_only_position(bool, default:False) –Gate centers instead of full box geometry.
-
fuse_detection_score(bool, default:False) –Weight first-pass geometry by detector confidence.
-
min_conf(float, default:0.1) –Minimum confidence for the low-score association pass when
use_byteis enabled. -
delta_t(int, default:3) –Observation lookback in frames for estimating motion direction.
-
inertia(float, default:0.1) –Weight of the observed velocity-direction term in matching.
-
use_byte(bool, default:False) –Enable a second association pass for detections between
min_confand the shared detection threshold. -
det_thresh(float, default:0.6) –Minimum detection confidence for the shared tracking kernel.