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) |
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for