FaceDetectionModelBase
abstract class FaceDetectionModelBase<I>(modelKindDescription: String?) : OnnxHighLevelModel<I, List<<ERROR CLASS>>>
Content copied to clipboard
Base class for face detection models.
Constructors
FaceDetectionModelBase
Link copied to clipboard
Types
Functions
detectFaces
Link copied to clipboard
initializeWith
Link copied to clipboard
open override fun initializeWith(vararg executionProviders: ExecutionProvider)
Content copied to clipboard
Initialize the model with the specified executions providers.
Properties
internalModel
Link copied to clipboard
modelKindDescription
Link copied to clipboard
preprocessing
Link copied to clipboard
abstract val preprocessing: <ERROR CLASS><I, <ERROR CLASS><FloatArray, <ERROR CLASS>>>
Content copied to clipboard
Inheritors
FaceDetectionModel
Link copied to clipboard
Extensions
detectFaces
Link copied to clipboard
fun FaceDetectionModelBase<Bitmap>.detectFaces(imageProxy: ImageProxy, topK: Int = 5, iouThreshold: Float = 0.5f): List<DetectedObject>
Content copied to clipboard
Detects topK faces on the given imageProxy. If topK is negative all detected faces are returned.