getFaceDetectionModel method
Gets the specifies the model used to detect and track faces.
Hint: Default value is FaceDetector4B. Some better accuracy/speed balances can be found by choosing another model.
return Specifies the model used to detect and track faces. throws FaceException An error has occurred during Face Library execution.
Implementation
FaceModel getFaceDetectionModel() {
Pointer<Int32> pFaceDetectionModel = calloc();
try {
var err = faceSDK.id3FacePortraitProcessor_GetFaceDetectionModel(_pHandle.value, pFaceDetectionModel);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vFaceDetectionModel = FaceModelX.fromValue(pFaceDetectionModel.value);
return vFaceDetectionModel;
} finally {
calloc.free(pFaceDetectionModel);
}
}