getModel method
Gets the model used to detect and track faces. Hint: Default value is FaceDetector4A which is the best available algorithm in this SDK in terms of accuracy. Some better accuracy/speed balances can be found by choosing another model.
return Model used to detect and track faces. throws FaceException An error has occurred during Face Library execution.
Implementation
FaceModel getModel() {
Pointer<Int32> pModel = calloc();
try {
var err = faceSDK.id3FaceDetector_GetModel(_pHandle.value, pModel);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vModel = FaceModelX.fromValue(pModel.value);
return vModel;
} finally {
calloc.free(pModel);
}
}