setDetectionModel method
- FaceModel detectionModel
Sets 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.
param detectionModel Model used to detect and track faces. throws FaceException An error has occurred during Face Library execution.
Implementation
void setDetectionModel(FaceModel detectionModel) {
var err = faceSDK.id3FaceTracker_SetDetectionModel(_pHandle.value, detectionModel.value);
if (err != FaceError.success.value) {
throw FaceException(err);
}
}