Execution
app.application.services.detection.executionSingle-frame detection execution collaborator.
See Also
DetectionEngineManager— supplies session detection enginesDetectionBatchProcessor— processes worker-produced results
Layer: Application. Context: Coordinates domain state and infrastructure to complete application use cases.
DetectionExecutionService
Run current-frame detection while delegating engine lifecycle to the manager.
| PARAMETER | DESCRIPTION |
|---|---|
session_repo
|
Interface used to retrieve the session and its current frame for inference.
TYPE:
|
engine_manager
|
Manager responsible for detection-engine lifecycle.
TYPE:
|
__init__(session_repo: UIApplicationInterface, engine_manager: DetectionEngineManager) -> None
execute_for_current_frame(s_id: SessionId) -> None
Detect the current frame and refresh its selected and editable detections.
| PARAMETER | DESCRIPTION |
|---|---|
s_id
|
Session identifier whose current frame is processed.
TYPE:
|
Raises: Exception: Propagates model, filtering, and storage failures.
Note
Label and detection-confidence settings filter model output before Layer A storage. An empty label selection permits every class. Layer B machine boxes are replaced even when the frame was initialized earlier; manual boxes survive.
Example
service.execute_for_current_frame(session_id)