detect

abstract fun detect(image: Image, limit: Int = 1): List<FaceDetector.Face>

Detect faces in the image. This operation should be called on a background thread.

Return

List of faces or an empty list when no faces are detected.

Parameters

limit

The number of faces to detect. Currently, only one face detection is supported.

Throws

If DOT Face Lite library is not activated.