detect

abstract fun detect(faceImage: FaceImage, maximumFaces: Int): List<DetectedFace>

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

Return

Detected faces sorted by their confidences.

Parameters

faceImage

Image.

maximumFaces

Detection stops when number of detected faces reaches this number.

Throws

If detection module is not activated.