Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

FaceDetectionEffect Class

Definition

Namespace:
Windows.Media.Core

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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

Name Description
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

Name Description
SetProperties(IPropertySet)

Sets properties on the IMediaExtension.

Events

Name Description
FaceDetected

Occurs when a face is detected. See FaceDetectedEventArgs.

Applies to

See also


Feedback

Was this page helpful?