FaceDetector.FindFacesAsync(Bitmap, FaceDetector+Face[]) Method
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.
Runs synchronous face detection and output-array population on a task.
public System.Threading.Tasks.Task<int> FindFacesAsync(Android.Graphics.Bitmap? bitmap, Android.Media.FaceDetector.Face[]? faces);
member this.FindFacesAsync : Android.Graphics.Bitmap * Android.Media.FaceDetector.Face[] -> System.Threading.Tasks.Task<int>
Parameters
- bitmap
- Bitmap
The RGB 565 bitmap to inspect, with dimensions matching the detector's configured width and height.
- faces
- FaceDetector.Face[]
The output array, with capacity at least equal to the detector's configured maximum face count. Results occupy the first returned-count entries.
Returns
A task returning the reported face count. On Android API 37.2, zero also covers a detector library that did not initialize.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.