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.
validate_geometry_kind
validate_geometry_kind(kind: GeometryKind) -> None
Validate a fixed geometry kind before allocating tracker state.