Public API Reference
The supported Python surface is split by ownership. Heavy model and native runtimes remain lazy until their factories—or a ReID-enabled tracker adapter's live embedding path—are invoked.
Structures
Oriented cxcywha boxes stored as float32[N, 5].
Angles are expressed in radians and intentionally remain unwrapped.
Detection rows and optional row-aligned perception enrichments.
select
select(indices: Tensor) -> Detections
Select or reorder rows while preserving every aligned field.
to_aabb_rows
Serialize AABB detections as [x1,y1,x2,y2,score,class] float32 rows.
to_obb_rows
Serialize OBB detections as [cx,cy,w,h,angle,score,class] float32 rows.
with_embeddings
with_embeddings(embeddings: Tensor) -> Detections
Return a detection batch enriched with aligned appearance vectors.
with_instance_ids
with_instance_ids(
instance_ids: tuple[str, ...],
) -> Detections
Return a detection batch carrying stable row-aligned instance IDs.
with_masks
with_masks(masks: MaskBatch) -> Detections
Return a detection batch enriched with aligned full-frame masks.
Tracker outputs with optional full-frame masks aligned to track rows.
select
select(indices: Tensor) -> Tracks
Select or reorder rows while preserving track-aligned masks.
to_aabb_rows
Serialize AABB tracks as [x1,y1,x2,y2,id,score,class,det_idx] float32 rows.
to_obb_rows
Serialize OBB tracks as [cx,cy,w,h,angle,id,score,class,det_idx] float32 rows.
Pipelines
Progressively enrich batches of canonical detections.
enrich
enrich(
frames: Sequence[Frame],
detections: Sequence[Detections],
requirements: TrackerRequirements = TrackerRequirements(),
) -> list[Detections]
Attach requested and tracker-required payloads to existing detections.
process
process(frames: Sequence[Frame]) -> list[Detections]
Detect and enrich an ordered frame batch according to requested outputs.
Run perception and tracking for one caller-owned frame at a time.
step_detections
step_detections(
frame: Frame, detections: Detections
) -> PipelineResult
Advance tracking from caller-supplied detections after required enrichment.
Dataset loader
Bases: Sequence[DatasetSample]
Read a versioned build and join optional data by stable instance key.
Parameters:
-
build(str | Path) –Explicit path to the immutable dataset build.
-
split(str | None, default:None) –Optional exact split filter.
-
load_images(bool, default:False) –Decode image references into canonical :class:
Frames. -
load_masks(bool, default:False) –Decode the keyed bit-packed mask table.
-
load_embeddings(bool, default:False) –Load the keyed embedding table.