setModel method

void setModel(
  1. FaceModel model
)

Sets the model used to detect and track faces. Hint: Default value is FaceDetector4A 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 detect and track faces. throws FaceException An error has occurred during Face Library execution.

Implementation

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