detectFaces

actual fun detectFaces(frameData: CameraFrame): List<DetectedFace>?
expect fun detectFaces(frameData: CameraFrame): List<DetectedFace>?

Use MLKit to detect faces in the given CameraFrame.

Return

A list of DetectedFace representing the detected faces and their features in common format, or null if no faces were detected.

Parameters

frameData

The camera frame data containing the original platform image bitmap reference and frame geometry data as taken on the device.


Use MLKit to detect faces in the given ImageBitmap.

Return

A list of DetectedFace representing the detected faces, or null if no faces were detected.

Parameters

image

The ImageBitmap to detect faces in. The face should be relatively upright (45 deg max deviation from vertical in the image for MLKit detector to work reliably).

actual fun detectFaces(frameData: <Error class: unknown class>): List<<Error class: unknown class>>?
actual fun detectFaces(image: <Error class: unknown class>): List<<Error class: unknown class>>?