Worker Factory Interface
app.application.interfaces.tracking.worker_factory_interfaceInterface contract for creating tracking worker instances.
See Also
TrackingWorkerFactoryAdapter— creates concrete tracking workersTrackingWorker— concrete worker type
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:
|
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 the application contract. |