Skip to content

Detection Engine Factory

app.infrastructure.detection.engine.detection_engine_factory

View source code

Module for detection engine factory; implements concrete processing and I/O behind application-facing contracts.

See Also

Layer: Infrastructure. Context: Implements concrete processing and i/o behind application-facing contracts at this architectural boundary.

DetectionEngineAdapterFactory

Bases: DetectionEngineFactoryInterface

Represent detection engine adapter factory.

Layer: Infrastructure. Context: Implements concrete processing or I/O behind application-facing contracts.

create(model_name: str) -> DetectionEngineInterface

Load a detection engine and expose it through the application interface.

PARAMETER DESCRIPTION
model_name

Registered name of the model to load.

TYPE: str

RETURNS DESCRIPTION
DetectionEngineInterface

Adapter delegating detection-engine operations to the loaded engine.