FaceDetector Class
Definition
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.
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
- 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, BitmapBounds) |
Asynchronously detects faces in the provided SoftwareBitmap within the specified search area. |
DetectFacesAsync(SoftwareBitmap) |
Asynchronously detects faces in the provided SoftwareBitmap. |
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. |