Package-level declarations

Types

Link copied to clipboard
data class DetectedFace(val boundingBox: Rect, val trackingId: Int, val rightEyeOpenProbability: Float, val leftEyeOpenProbability: Float, val smilingProbability: Float, val headEulerAngleX: Float, val headEulerAngleY: Float, val headEulerAngleZ: Float, val landmarks: List<FaceLandmark>, val contours: List<FaceContour>)

MLKit face detection result object copy of the recognized face data and facial features as detected.

Link copied to clipboard
data class FaceContour(val type: FaceContourType, val points: List<Offset>)

MLKit face detection result object copy of the facial contour type recognized.

Link copied to clipboard

Facial contour types detectable by MLKit. (common IDs to support different Android and iOS implementation of them in MLKit).

Link copied to clipboard
data class FaceLandmark(val type: FaceLandmarkType, val position: Offset)

MLKit face detection result object copy of the facial landmark type recognized.

Link copied to clipboard

Face landmark types detectable by MLKit. (common IDs to support different Android and iOS implementation of them in MLKit).

Functions

Link copied to clipboard
actual fun detectFaces(frameData: CameraFrame): List<DetectedFace>?

Use MLKit to detect faces in the given ImageBitmap.

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

Use MLKit to detect faces in the given CameraFrame.

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>>?
Link copied to clipboard
fun List<FaceContour>.toMFaceContourList(rotation: Int, size: Size): List<FaceContour>
Link copied to clipboard
fun List<FaceLandmark>.toMFaceLandmarkList(rotation: Int, size: Size): List<FaceLandmark>
Link copied to clipboard
fun Face.toMultiplatformFace(rotation: Int, size: Size): DetectedFace