boxmot.trackers.common.box.base
Shared invariant boundary for box-state trackers.
BoxTracker
BoxTracker(
*args,
is_obb: bool = False,
mask_guidance: MaskGuidanceConfig
| MaskGuidance
| None = None,
edgetam: Mapping[str, object] | None = None,
**kwargs,
)
Bases: BoxMaskGuidanceMixin, BaseTracker
Base class for trackers whose primary state is an AABB or OBB.
The class selects one immutable geometry policy at construction. That policy owns canonical-geometry validation, private row layout selection, and association-mode dispatch for the lifetime of the tracker.
capabilities
class-attribute
instance-attribute
capabilities = TrackerCapabilities(
family=BOX,
geometry_kinds=supported_geometry_kinds,
accepts_frame=True,
)
supported_geometry_kinds
class-attribute
instance-attribute
supported_geometry_kinds: frozenset[GeometryKind] = (
frozenset({AABB, OBB})
)
__init_subclass__
Materialize one immutable capability declaration per implementation.
set_prepared_cmc
set_prepared_cmc(warps: ndarray) -> PreparedCMC
Bind sequence transforms before tracking while preserving other input needs.
Prepared transforms replace only an enabled CMC estimator. They do not remove frame requirements belonging to association or mask guidance, and supplied/live appearance embeddings retain their existing contract.
validate_geometry_kind
validate_geometry_kind(kind: GeometryKind) -> None
Validate a fixed geometry kind before allocating tracker state.