# setFaceEncodingModel method

void setFaceEncodingModel(

1. FaceModel faceEncodingModel

)

Sets the model used to create features and assess consistancy among views of a given face. Hint: Default value is `FaceEncoder9B`. Some better accuracy/speed balances can be found by choosing another model.

param faceEncodingModel Model used to create features and assess consistancy among views of a given face. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setFaceEncodingModel(FaceModel faceEncodingModel) {
      var err = faceSDK.id3FacePortraitProcessor_SetFaceEncodingModel(_pHandle.value, faceEncodingModel.value);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }