detectFaces

fun FaceDetectionModelBase<Bitmap>.detectFaces(imageProxy: ImageProxy, topK: Int = 5, iouThreshold: Float = 0.5f): List<DetectedObject>

Detects topK faces on the given imageProxy. If topK is negative all detected faces are returned.

Parameters

iouThreshold

threshold IoU value for the non-maximum suppression applied during postprocessing