Tracking Worker Factory Adapter
app.application.adapters.tracking_worker_factory_adapterInfrastructure-backed factory adapter for tracking workers.
Based on the
TrackingWorkerFactoryInterface
interface contract, this adapter creates concrete
TrackingWorker
instances behind an interface seam.
See Also
TrackingWorkerManager— coordinates worker lifecycleTrackingWorkerInterface— describes the returned worker contract
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:
|
source_data
|
Per-frame detections that the tracker should follow. |
session_state
|
Session metadata and settings used by tracking.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
TrackingWorkerInterface
|
Tracking worker implementing |