Share via


FaceDetector.DetectFacesAsync Method

Definition

Overloads

DetectFacesAsync(SoftwareBitmap)

Asynchronously detects faces in the provided SoftwareBitmap.

DetectFacesAsync(SoftwareBitmap, BitmapBounds)

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

DetectFacesAsync(SoftwareBitmap)

Asynchronously detects faces in the provided SoftwareBitmap.

public:
 virtual IAsyncOperation<IVector<DetectedFace ^> ^> ^ DetectFacesAsync(SoftwareBitmap ^ image) = DetectFacesAsync;
/// [Windows.Foundation.Metadata.Overload("DetectFacesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVector<DetectedFace>> DetectFacesAsync(SoftwareBitmap const& image);
[Windows.Foundation.Metadata.Overload("DetectFacesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IList<DetectedFace>> DetectFacesAsync(SoftwareBitmap image);
function detectFacesAsync(image)
Public Function DetectFacesAsync (image As SoftwareBitmap) As IAsyncOperation(Of IList(Of DetectedFace))

Parameters

image
SoftwareBitmap

The image data to be processed for face detection.

Returns

An asynchronous operation that returns a list of DetectedFace objects upon successful completion.

Attributes

Remarks

The provided SoftwareBitmap must be in a supported pixel format for this method and its overloads. Use GetSupportedBitmapPixelFormats to retrieve a list of supported pixel formats for the current device. Use IsBitmapPixelFormatSupported to test whether a given pixel format is supported.

See also

Applies to

DetectFacesAsync(SoftwareBitmap, BitmapBounds)

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

public:
 virtual IAsyncOperation<IVector<DetectedFace ^> ^> ^ DetectFacesAsync(SoftwareBitmap ^ image, BitmapBounds searchArea) = DetectFacesAsync;
/// [Windows.Foundation.Metadata.Overload("DetectFacesWithSearchAreaAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVector<DetectedFace>> DetectFacesAsync(SoftwareBitmap const& image, BitmapBounds const& searchArea);
[Windows.Foundation.Metadata.Overload("DetectFacesWithSearchAreaAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IList<DetectedFace>> DetectFacesAsync(SoftwareBitmap image, BitmapBounds searchArea);
function detectFacesAsync(image, searchArea)
Public Function DetectFacesAsync (image As SoftwareBitmap, searchArea As BitmapBounds) As IAsyncOperation(Of IList(Of DetectedFace))

Parameters

image
SoftwareBitmap

The image data to be processed for face detection.

searchArea
BitmapBounds

The bounds within the SoftwareBitmap in which face detection will be performed.

Returns

An asynchronous operation that returns a list of DetectedFace objects upon successful completion.

Attributes

See also

Applies to