Skip to content

boxmot.engine.calibration.cmc

Image-only camera analysis shared by joint camera/Kalman selection candidates.

CMC_ANALYSIS_SCHEMA module-attribute

CMC_ANALYSIS_SCHEMA = 'boxmot.cmc-analysis/v2'

PreparedCMCCandidates dataclass

PreparedCMCCandidates(
    warps: Mapping[str, ndarray],
    policy: SequenceCMCPolicy,
    report_path: Path,
    warps_path: Path,
    report: Mapping[str, Any],
    mask_min_conf: float,
)

Frozen camera behavior reused for every filter, profile, and fold.

warps[sequence][frame] maps the preceding delivered frame to the current frame, with identity at frame zero and on disabled sequences. The NPZ artifact retains raw estimates even for disabled sequences.

mask_min_conf instance-attribute

mask_min_conf: float

policy instance-attribute

report instance-attribute

report: Mapping[str, Any]

report_path instance-attribute

report_path: Path

warps instance-attribute

warps: Mapping[str, ndarray]

warps_path instance-attribute

warps_path: Path

cmc_file_signature

cmc_file_signature(path: Path) -> list[int]

Bind camera evidence to a regular file's identity and mutation epoch.

cmc_build_signature

cmc_build_signature(build: Path) -> dict[str, list[int]]

Snapshot published artifacts without traversing source images or workflow outputs.

cmc_image_signature

cmc_image_signature(
    references: tuple[str, ...], image_root: str
) -> dict[str, list[int]]

Resolve references again so replaced images and redirected links invalidate reuse.

cmc_runtime_mask_settings

cmc_runtime_mask_settings(
    options: Mapping[str, Any],
) -> dict[str, float | None]

Distinguish native runtime masking from an explicit frozen confidence.

cmc_analysis_settings

cmc_analysis_settings(
    options: Mapping[str, Any] | None = None,
) -> dict[str, Any]

Describe the resolved SOF estimator and sequence gate in saved JSON.

cmc_analysis_inputs

cmc_analysis_inputs(
    args: Any, baseline: Mapping[str, Any]
) -> dict[str, Any]

Describe camera content independently of workers and workflow output paths.

prepare_cmc_candidates

prepare_cmc_candidates(
    args: Namespace,
    baseline: Mapping[str, Any],
    output_dir: str | Path,
    progress: Callable[[str], None] | None = None,
) -> PreparedCMCCandidates

Reuse or materialize camera evidence, then copy it into this workflow's output.

Estimation is deferred until requested because the detection mask depends on tracker settings. Independent eval, tuning, and joint-selection runs share the validated artifacts under build/cmc/<key>.