Share via


FaceTracker.ProcessNextFrameAsync(VideoFrame) Method

Definition

Asynchronously processes a VideoFrame for face detection.

public:
 virtual IAsyncOperation<IVector<DetectedFace ^> ^> ^ ProcessNextFrameAsync(VideoFrame ^ videoFrame) = ProcessNextFrameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVector<DetectedFace>> ProcessNextFrameAsync(VideoFrame const& videoFrame);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IList<DetectedFace>> ProcessNextFrameAsync(VideoFrame videoFrame);
function processNextFrameAsync(videoFrame)
Public Function ProcessNextFrameAsync (videoFrame As VideoFrame) As IAsyncOperation(Of IList(Of DetectedFace))

Parameters

videoFrame
VideoFrame

The VideoFrame in which faces are detected or tracked.

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. 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.

Applies to