setModel method

void setModel(
  1. FaceModel model
)

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

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

Implementation

void setModel(FaceModel model) {
  var err = faceSDK.id3FaceEncoder_SetModel(_pHandle.value, model.value);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}