Skip to content

Engine Factory Interface

app.application.interfaces.detection.engine_factory_interface

View source code

Module for engine factory interface; defines contracts independent of concrete adapters.

See Also

Layer: Application. Context: Defines contracts independent of concrete adapters at this architectural boundary.

DetectionEngineFactoryInterface

Bases: Protocol

The DetectionEngineFactoryInterface

DetectionEngineFactory in Infrastructure/detection is instantiated from it,

which is then used by the DetectionEngineManager.

Layer: Application. Context: Coordinates use-case behavior through domain services and application contracts.

create(model_name: str) -> DetectionEngineInterface

Create a detection engine configured for the requested model.

PARAMETER DESCRIPTION
model_name

Registry name of the detection model.

TYPE: str

RETURNS DESCRIPTION
DetectionEngineInterface

Engine implementing DetectionEngineInterface.