# getFaceEncodingModel method

FaceModel getFaceEncodingModel()

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

return 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

    FaceModel getFaceEncodingModel() {
      Pointer<Int32> pFaceEncodingModel = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetFaceEncodingModel(_pHandle.value, pFaceEncodingModel);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vFaceEncodingModel = FaceModelX.fromValue(pFaceEncodingModel.value);
        return vFaceEncodingModel;
      } finally {
        calloc.free(pFaceEncodingModel);
      }
    }