getModel method

FaceModel getModel()

Gets the model used to create templates. Hint: Default value is FaceEncoder9A which is the best available algorithm in this SDK in terms of accuracy. Some better accuracy/speed balances can be found by choosing another model.

return Model used to create templates. throws FaceException An error has occurred during Face Library execution.

Implementation

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