Skip to content

Mapper

app.infrastructure.detection.model.mtcnn_tf.mapper

View source code

Mapper for converting MTCNN model output to DetectionPayload.

See Also

[NOTE] [IMPORTANT] !!! NOT supported as of current development status !!!

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

MTCNNTFDetectionMapper

Maps raw MTCNN detection results to DetectionPayload format.

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

map(results: list, chosen_labels: list[str] | None = None) -> list[DetectionResult] staticmethod

Map MTCNN raw inference output to DetectionResult list.

PARAMETER DESCRIPTION
results

MTCNN face-result mappings containing box and confidence.

TYPE: list

chosen_labels

Optional label allowlist; this mapper emits only "person".

TYPE: list[str] | None DEFAULT: None

RETURNS DESCRIPTION
list[DetectionResult]

Person detections meeting the configured confidence threshold and label filter.