Bagikan melalui


FaceDetector.DetectFacesAsync Metode

Definisi

Overload

DetectFacesAsync(SoftwareBitmap)

Secara asinkron mendeteksi wajah dalam SoftwareBitmap yang disediakan.

DetectFacesAsync(SoftwareBitmap, BitmapBounds)

Secara asinkron mendeteksi wajah di SoftwareBitmap yang disediakan dalam area pencarian yang ditentukan.

DetectFacesAsync(SoftwareBitmap)

Secara asinkron mendeteksi wajah dalam SoftwareBitmap yang disediakan.

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

Parameter

image
SoftwareBitmap

Data gambar yang akan diproses untuk deteksi wajah.

Mengembalikan

Operasi asinkron yang mengembalikan daftar objek DetectedFace setelah berhasil diselesaikan.

Atribut

Keterangan

SoftwareBitmap yang disediakan harus dalam format piksel yang didukung untuk metode ini dan kelebihan bebannya. Gunakan GetSupportedBitmapPixelFormats untuk mengambil daftar format piksel yang didukung untuk perangkat saat ini. Gunakan IsBitmapPixelFormatSupported untuk menguji apakah format piksel tertentu didukung.

Lihat juga

Berlaku untuk

DetectFacesAsync(SoftwareBitmap, BitmapBounds)

Secara asinkron mendeteksi wajah di SoftwareBitmap yang disediakan dalam area pencarian yang ditentukan.

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

Parameter

image
SoftwareBitmap

Data gambar yang akan diproses untuk deteksi wajah.

searchArea
BitmapBounds

Batas dalam SoftwareBitmap tempat deteksi wajah akan dilakukan.

Mengembalikan

Operasi asinkron yang mengembalikan daftar objek DetectedFace setelah berhasil diselesaikan.

Atribut

Lihat juga

Berlaku untuk