Skip to content

Dummy

app.infrastructure.detection.model.dummy

View source code

Module for dummy; 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.

DummyDetectionModel

Bases: BaseDetectionModel

No-op detection model — always returns empty list (used when model is "None").

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

detect(frame: np.ndarray, chosen_labels: list[str] | None = None) -> list[DetectionResult]

Return empty list (no detections).

PARAMETER DESCRIPTION
frame

RGB image array; unused by this no-op model.

TYPE: ndarray

chosen_labels

Optional label filter; unused because no detections are produced.

TYPE: list[str] | None DEFAULT: None

RETURNS DESCRIPTION
list[DetectionResult]

Empty list.