Class FacesIdentifiedEventArgs
- Namespace
- VisioForge.Core.Types.Events
- Assembly
- VisioForge.Core.dll
Provides data for events that report faces recognized in a video frame by the face recognition block.
public class FacesIdentifiedEventArgs : EventArgsInheritance
Inherited Members
Remarks
Raised for each processed frame that contains at least one detected face. Faces that did not match any
gallery entry are still reported with a nullVisioForge.Core.Types.VideoProcessing.FaceRecognitionResult.Identity. The
event is raised on the block's background recognition thread, so handlers must be thread-safe and marshal
to the UI thread when needed.
Constructors
FacesIdentifiedEventArgs(FaceRecognitionResult[], TimeSpan)
Initializes a new instance of the VisioForge.Core.Types.Events.FacesIdentifiedEventArgs class.
public FacesIdentifiedEventArgs(FaceRecognitionResult[] faces, TimeSpan timestamp)Parameters
facesFaceRecognitionResult[]-
The recognized faces.
timestampTimeSpan-
The timestamp of the source frame.
Properties
Faces
Gets the faces recognized in the current frame.
public FaceRecognitionResult[] Faces { get; }Property Value
Timestamp
Gets the timestamp of the video frame the faces belong to.
public TimeSpan Timestamp { get; }