Table of Contents

Class CascadeFaceDetectorSettings

Namespace
VisioForge.Core.CV
Assembly
VisioForge.Core.CV.dll

Settings for the Cascade Face Detector, allowing configuration of detection parameters and visual feedback.

public class CascadeFaceDetectorSettings

Inheritance

Inherited Members

Properties

Blur

Gets or sets a value indicating whether to blur the detected faces.

public bool Blur { get; set; }

Property Value

bool

CacheSize

Gets or sets the size of the cache (duration in frames).

public int CacheSize { get; set; }

Property Value

int

DetectEyes

Gets or sets a value indicating whether to detect eyes within the detected face.

public bool DetectEyes { get; set; }

Property Value

bool

DetectFrontalFace

Gets or sets a value indicating whether to detect frontal faces.

public bool DetectFrontalFace { get; set; }

Property Value

bool

DetectMouth

Gets or sets a value indicating whether to detect the mouth within the detected face.

public bool DetectMouth { get; set; }

Property Value

bool

DetectNose

Gets or sets a value indicating whether to detect the nose within the detected face.

public bool DetectNose { get; set; }

Property Value

bool

DetectProfileFace

Gets or sets a value indicating whether to detect profile faces (side view).

public bool DetectProfileFace { get; set; }

Property Value

bool

DrawColor

Gets or sets the color used for drawing the detection shapes (rectangles or circles).

public SKColor DrawColor { get; set; }

Property Value

SKColor

DrawEnabled

Gets or sets a value indicating whether to draw rectangles or circles around detected faces on the video frame.

public bool DrawEnabled { get; set; }

Property Value

bool

DrawShapeType

Gets or sets the shape to use when drawing detected faces.

public CVShapeType DrawShapeType { get; set; }

Property Value

CVShapeType

FramesToSkip

Gets or sets the number of frames to skip between detection passes to improve performance.

public int FramesToSkip { get; set; }

Property Value

int

MaxFaceSize

Gets or sets the maximum possible object size. Objects larger than this are ignored.

public Size MaxFaceSize { get; set; }

Property Value

Size

MinFaceSize

Gets or sets the minimum possible object size. Objects smaller than this are ignored.

public Size MinFaceSize { get; set; }

Property Value

Size

MinNeighbors

Gets or sets the parameter specifying how many neighbors each candidate rectangle should have to retain it.

public int MinNeighbors { get; set; }

Property Value

int

Pixelate

Gets or sets a value indicating whether to pixelate the detected faces.

public bool Pixelate { get; set; }

Property Value

bool

ScaleFactor

Gets or sets the parameter specifying how much the image size is reduced at each image scale.

public float ScaleFactor { get; set; }

Property Value

float

UseCache

Gets or sets a value indicating whether to use a cache for detected faces.

public bool UseCache { get; set; }

Property Value

bool

Remarks

When enabled, the detector reuses the location of detected faces for a certain number of frames (defined by VisioForge.Core.CV.CascadeFaceDetectorSettings.CacheSize), which improves performance by running the expensive detection algorithm less frequently.

VideoScale

Gets or sets the scaling factor for the video frame during processing.

public double VideoScale { get; set; }

Property Value

double