Class PIIFaceRedactionSettings
- Namespace
- VisioForge.Core.Types.X.AI
- Assembly
- VisioForge.Core.dll
Face-category settings for the PII redaction block. Faces are located with the OpenCV Zoo YuNet detector (MIT); only detection runs — no identity recognition.
public class PIIFaceRedactionSettingsInheritance
Inherited Members
Properties
ConfidenceThreshold
Gets or sets the minimum detection score (0..1) a face must reach. Defaults to 0.5 — lower than the face-recognition block's default because for redaction recall matters more than precision.
public float ConfidenceThreshold { get; set; }Property Value
DetectionInputSize
Gets or sets the square letterbox input size, in pixels, for dynamic-shape models; rounded up to a multiple of 32 (YuNet requirement). Fixed-shape models use their own size. Defaults to 320.
public int DetectionInputSize { get; set; }Property Value
Enabled
Gets or sets a value indicating whether faces are redacted. Can be toggled off (and back on) while
the pipeline is running only if the category was enabled when the block was built; enabling a
category that was disabled at build time has no effect until the block is rebuilt (the detector is
created only for categories enabled at build). Defaults to true.
public bool Enabled { get; set; }Property Value
Remarks
Volatile-backed: it is written from the UI thread (a live toggle) and read on the block's detection and streaming threads, so the flag must be published across threads for the toggle to take effect promptly on weak memory models.
MaxFaces
Gets or sets the maximum number of faces to redact per frame. Defaults to 50.
public int MaxFaces { get; set; }Property Value
ModelPath
Gets or sets the path to the YuNet face-detection ONNX model. Required when VisioForge.Core.Types.X.AI.PIIFaceRedactionSettings.Enabled is true.
public string ModelPath { get; set; }Property Value
NmsThreshold
Gets or sets the IoU threshold for non-maximum suppression. Defaults to 0.3.
public float NmsThreshold { get; set; }