Engine Factory Interface
app.application.interfaces.detection.engine_factory_interfaceModule for engine factory interface; defines contracts independent of concrete adapters.
See Also
DetectionEngineAdapterFactory— implements engine constructionDetectionEngineManager— consumes the factory contract
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:
|
| RETURNS | DESCRIPTION |
|---|---|
DetectionEngineInterface
|
Engine implementing |