Table of Contents

Class CascadeFaceDetector

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

Implements face detection using Haar Feature-based Cascade Classifiers.

public class CascadeFaceDetector : IDisposable

Inheritance

Implements

Inherited Members

Remarks

This class uses the OpenCvSharp library to detect faces, eyes, noses, and mouths in video frames. It supports frontal and profile face detection, as well as feature detection within the face region. It also includes features for performance optimization (skipping frames, scaling) and visual effects (blur, pixelate).

Constructors

CascadeFaceDetector(CascadeFaceDetectorSettings)

Initializes a new instance of the VisioForge.Core.CV.CascadeFaceDetector class.

public CascadeFaceDetector(CascadeFaceDetectorSettings settings = null)

Parameters

settings CascadeFaceDetectorSettings

The settings to configure the detector. If null, default settings are used.

Properties

Settings

Gets or sets the configuration settings for the face detector.

public CascadeFaceDetectorSettings Settings { get; set; }

Property Value

CascadeFaceDetectorSettings

Methods

Clear()

Clears.

public void Clear()

Dispose()

Dispose.

public void Dispose()

Dispose(bool)

Dispose.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Disposing parameter.

~CascadeFaceDetector()

Finalizes an instance of the VisioForge.Core.CV.CascadeFaceDetector class.

protected ~CascadeFaceDetector()

Process(RAWImage, out List<CVFace>)

Processes the specified source.

public void Process(RAWImage source, out List<CVFace> facesList)

Parameters

source RAWImage

The source.

facesList List<CVFace>

The faces list.

Process(RAWImage, TimeSpan)

Process.

public CVFace[] Process(RAWImage frame, TimeSpan timestamp)

Parameters

frame RAWImage

The frame.

timestamp TimeSpan

Timestamp.

Returns

CVFace[]

The VisioForge.Core.Types.VideoProcessing.CVFace.

Process(VideoFrame)

Process.

public CVFace[] Process(VideoFrame frame)

Parameters

frame VideoFrame

The frame.

Returns

CVFace[]

The VisioForge.Core.Types.VideoProcessing.CVFace.

OnFaceDetected

Event raised when one or more faces are detected in a frame.

public event EventHandler<CVFaceDetectedEventArgs> OnFaceDetected

Event Type

EventHandler<CVFaceDetectedEventArgs>