Class CascadeFaceDetector
- Namespace
- VisioForge.Core.CV
- Assembly
- VisioForge.Core.CV.dll
Implements face detection using Haar Feature-based Cascade Classifiers.
public class CascadeFaceDetector : IDisposableInheritance
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
settingsCascadeFaceDetectorSettings-
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
Methods
Clear()
Clears.
public void Clear()Dispose()
Dispose.
public void Dispose()Dispose(bool)
Dispose.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
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
sourceRAWImage-
The source.
facesListList<CVFace>-
The faces list.
Process(RAWImage, TimeSpan)
Process.
public CVFace[] Process(RAWImage frame, TimeSpan timestamp)Parameters
frameRAWImage-
The frame.
timestampTimeSpan-
Timestamp.
Returns
- CVFace[]
-
The VisioForge.Core.Types.VideoProcessing.CVFace.
Process(VideoFrame)
Process.
public CVFace[] Process(VideoFrame frame)Parameters
frameVideoFrame-
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> OnFaceDetectedEvent Type
- EventHandler<CVFaceDetectedEventArgs>