getEncodingModel method

FaceModel getEncodingModel()

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 getEncodingModel() {
  Pointer<Int32> pEncodingModel = calloc();
  try {
    var err = faceSDK.id3FaceTracker_GetEncodingModel(_pHandle.value, pEncodingModel);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vEncodingModel = FaceModelX.fromValue(pEncodingModel.value);
    return vEncodingModel;
  } finally {
    calloc.free(pEncodingModel);
  }
}