Skip to content

Worker Factory Interface

app.application.interfaces.tracking.worker_factory_interface

View source code

Interface contract for creating tracking worker instances.

See Also

Layer: Application. Context: Defines protocol boundaries consumed by application orchestration.

TrackingWorkerFactoryInterface

Bases: Protocol

Create start-ready tracking workers behind an interface seam.

Layer: Application. Context: Coordinates use-case behavior through domain services and application contracts.

create(strategy_name: str, source_data: ListOfBoxesByFrameIndexAsDict, session_state: SessionState) -> TrackingWorkerInterface

Create a worker that tracks detections across video frames.

PARAMETER DESCRIPTION
strategy_name

Tracking algorithm to instantiate.

TYPE: str

source_data

Per-frame detections that the tracker should follow.

TYPE: ListOfBoxesByFrameIndexAsDict

session_state

Session metadata and settings used by tracking.

TYPE: SessionState

RETURNS DESCRIPTION
TrackingWorkerInterface

Tracking worker implementing the application contract.