FaceDetectionEffect Class

Definition

Represents an effect that attempts to detect faces in a video stream.

public ref class FaceDetectionEffect sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FaceDetectionEffect final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FaceDetectionEffect
Public NotInheritable Class FaceDetectionEffect
Inheritance
Object Platform::Object IInspectable FaceDetectionEffect
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Get an instance of this class by passing a FaceDetectionEffectDefinition object into AddVideoEffectAsync.

Properties

DesiredDetectionInterval

Gets or sets the time span for which face detection should be performed.

Enabled

Gets or sets a value indicating whether face detection is enabled.

Methods

SetProperties(IPropertySet)

Sets properties on the IMediaExtension.

Events

FaceDetected

Occurs when a face is detected. See FaceDetectedEventArgs.

Applies to

See also