FaceTracker.ProcessNextFrameAsync(VideoFrame) 方法

定义

异步处理用于人脸检测 的视频帧

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

参数

videoFrame
VideoFrame

在其中检测或跟踪人脸的视频

返回

一个异步操作,在成功完成时返回 DetectedFace 对象列表。

属性

注解

提供的 SoftwareBitmap 必须采用受支持的像素格式。 使用 GetSupportedBitmapPixelFormats 检索当前设备支持的像素格式列表。 使用 IsBitmapPixelFormatSupported 测试给定像素格式是否受支持。

适用于