Skip to content

boxmot.trackers.common.motion.cmc.prepared

Sequence-local consumption of previously validated camera transforms.

PreparedCMC

PreparedCMC(warps: ndarray)

Bases: BaseCMC

Apply prepared affine transforms through the ordinary tracker CMC path.

The caller selects each delivered frame explicitly, starting at zero. Applying a transform never advances the frame, so class-separated updates can consume the same camera motion repeatedly. Source provenance and the sample identities belong to the workflow supplying these transforms.

requires_frame_pixels class-attribute instance-attribute

requires_frame_pixels = False

apply

apply(
    img: ndarray | None = None, dets: ndarray | None = None
) -> ndarray

Return the selected transform without reading pixels or estimating motion.

reset

reset() -> None

Restart sequence selection while retaining immutable transforms.

select_frame

select_frame(frame_index: int) -> None

Select the next delivered frame without permitting skipped transforms.

validate_complete

validate_complete() -> None

Require every prepared frame to have reached the tracker CMC path.