# setFaceDetectionModel method

void setFaceDetectionModel(

1. FaceModel faceDetectionModel

)

Sets 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.

param faceDetectionModel Specifies the model used to detect and track faces. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setFaceDetectionModel(FaceModel faceDetectionModel) {
      var err = faceSDK.id3FacePortraitProcessor_SetFaceDetectionModel(_pHandle.value, faceDetectionModel.value);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }