Package org.jetbrains.kotlinx.dl.onnx.inference.facealignment
Types
FaceAlignmentModelBase
Link copied to clipboard
abstract class FaceAlignmentModelBase<I>(modelKindDescription: String?) : OnnxHighLevelModel<I, List<<ERROR CLASS>>>
Content copied to clipboard
Base class for face alignment models.
FaceDetectionModel
Link copied to clipboard
class FaceDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : FaceDetectionModelBase<Bitmap> , CameraXCompatibleModel, InferenceModel
Content copied to clipboard
class FaceDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : FaceDetectionModelBase<BufferedImage> , InferenceModel
Content copied to clipboard
Face detection model implementation.
FaceDetectionModelBase
Link copied to clipboard
abstract class FaceDetectionModelBase<I>(modelKindDescription: String?) : OnnxHighLevelModel<I, List<<ERROR CLASS>>>
Content copied to clipboard
Base class for face detection models.
Fan2D106FaceAlignmentModel
Link copied to clipboard
class Fan2D106FaceAlignmentModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : FaceAlignmentModelBase<Bitmap> , CameraXCompatibleModel, InferenceModel
Content copied to clipboard
The light-weight API for solving Face Alignment task.
class Fan2D106FaceAlignmentModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : FaceAlignmentModelBase<BufferedImage> , InferenceModel
Content copied to clipboard
The light-weight API for solving Face Alignment task via Fan2D106 model.
Functions
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.
detectLandmarks
Link copied to clipboard
fun FaceAlignmentModelBase<Bitmap>.detectLandmarks(imageProxy: ImageProxy): List<Landmark>
Content copied to clipboard
Detects Landmark objects on the given imageProxy.