Skip to content

Execution

app.application.services.detection.execution

View source code

Single-frame detection execution collaborator.

See Also

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: UIApplicationInterface

engine_manager

Manager responsible for detection-engine lifecycle.

TYPE: DetectionEngineManager

__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: SessionId

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)