getDetectionModel method
Gets the model used to detect and track faces. Hint: Default value is FaceDetector4B. Note: 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 getDetectionModel() {
Pointer<Int32> pDetectionModel = calloc();
try {
var err = faceSDK.id3FaceTracker_GetDetectionModel(_pHandle.value, pDetectionModel);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vDetectionModel = FaceModelX.fromValue(pDetectionModel.value);
return vDetectionModel;
} finally {
calloc.free(pDetectionModel);
}
}