FaceDetector Class

Definition

Detects faces in a SoftwareBitmap.

public ref class FaceDetector 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 FaceDetector 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 FaceDetector
Public NotInheritable Class FaceDetector
Inheritance
Object Platform::Object IInspectable FaceDetector
Attributes

Windows requirements

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

Properties

IsSupported

Gets a value indicating whether the FaceDetector class is supported on the current device.

MaxDetectableFaceSize

Gets or sets the maximum detectable face size, in pixels.

MinDetectableFaceSize

Gets or sets the minimum detectable face size, in pixels.

Methods

CreateAsync()

Creates a new instance of the FaceDetector class.

DetectFacesAsync(SoftwareBitmap)

Asynchronously detects faces in the provided SoftwareBitmap.

DetectFacesAsync(SoftwareBitmap, BitmapBounds)

Asynchronously detects faces in the provided SoftwareBitmap within the specified search area.

GetSupportedBitmapPixelFormats()

Returns a list of the bitmap pixels formats supported by the FaceDetector on the current device.

IsBitmapPixelFormatSupported(BitmapPixelFormat)

Queries whether the specified bitmap pixel format is supported by the FaceDetector on the current device.

Applies to

See also