Skip to content

Tracking Worker Factory Adapter

app.application.adapters.tracking_worker_factory_adapter

View source code

Infrastructure-backed factory adapter for tracking workers.

Based on the TrackingWorkerFactoryInterface interface contract, this adapter creates concrete TrackingWorker instances behind an interface seam.

See Also

Layer: Application. Context: Adapts infrastructure implementations to application contracts.

TrackingWorkerFactoryAdapter

Bases: TrackingWorkerFactoryInterface

Create concrete TrackingWorker instances 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

Build and return a TrackingWorker instance.

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 TrackingWorkerInterface.