Skip to content

Face Mask Evaluation

⚠️ Warning

This node is exclusive to the Forxai Mirror project and requires a specific installation for use.

Overview

The Face Mask Evaluation node analyzes face mask compliance by comparing model predictions against enabled check criteria. It identifies specific violations like missing masks or improper wearing (exposed nose or chin).

Use Face Mask Evaluation when:

  • Monitoring public health guidelines in indoor or crowded spaces.
  • Distinguishing between a total lack of a mask and improper wearing (e.g., "nose hanging out").

Inputs

NameTypeDescription
maskpredictionPrediction for "mask worn correctly".
no_maskpredictionPrediction for "no mask detected".
nose_exposurepredictionPrediction for "nose exposed".
chin_exposurepredictionPrediction for "chin exposed".
face_mask_enableboolEnables the check for missing masks.
nose_exposure_enableboolEnables the check for exposed noses.
chin_exposure_enableboolEnables the check for exposed chins.

Outputs

The outputs emitted depend on which "enable" inputs are set to true.

NameTypeDescription
face_mask_violationbooltrue if the dominant class is a violation (and enabled).
nose_exp_violationbooltrue if the nose is exposed (when enabled).
chin_exp_violationbooltrue if the chin is exposed (when enabled).

Parameters

This node does not have any configuration parameters. All behavior is controlled through inputs.

INFO

The node determines the dominant prediction by selecting the input with the highest probability (argmax). It does not use a numeric confidence threshold — whichever prediction class has the highest score wins. The enable inputs then control which violation outputs are emitted.

Example

Strict compliance monitoring

A building requires masks that cover both the nose and chin. All three enable inputs are set to true so the system checks every aspect of mask compliance.

Configuration:

  • No parameters — all behavior is controlled via the boolean enable inputs.

Result: If the highest-probability prediction is nose_exposure, then face_mask_violation and nose_exp_violation are both true, while chin_exp_violation is false. If the winning class is mask, all violation outputs are false.

Reference: