FaceDetectionEffectDefinition 类

定义

表示人脸检测视频效果的定义。

public ref class FaceDetectionEffectDefinition sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [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 FaceDetectionEffectDefinition final
/// [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)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class FaceDetectionEffectDefinition final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[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 FaceDetectionEffectDefinition
[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)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class FaceDetectionEffectDefinition
function FaceDetectionEffectDefinition()
Public NotInheritable Class FaceDetectionEffectDefinition
继承
Object Platform::Object IInspectable FaceDetectionEffectDefinition
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

通过将 FaceDetectionEffectDefinition 对象传递到 AddVideoEffectAsync 来获取 FaceDetectionEffect 类的实例。

构造函数

FaceDetectionEffectDefinition()

初始化 FaceDetectionEffectDefinition 类的新实例。

属性

ActivatableClassId

获取包含人脸检测效果定义的可激活类 ID 的字符串。

DetectionMode

获取或设置一个值,该值确定人脸检测的速度和检测结果的质量的优先级。

Properties

获取用于配置 FaceDetectionEffectDefinition 对象的属性集。

SynchronousDetectionEnabled

获取或设置一个值,该值指示是否启用同步人脸检测。

适用于

另请参阅