setEyeOpeningThreshold method

void setEyeOpeningThreshold(
  1. int eyeOpeningThreshold
)

Sets the eye opening threshold. If the score is above this value, the eyes are definitely open. Hint: Default value is 5.

param eyeOpeningThreshold Eye opening threshold. throws FaceException An error has occurred during Face Library execution.

Implementation

void setEyeOpeningThreshold(int eyeOpeningThreshold) {
  var err = faceSDK.id3FacePortraitProcessor_SetEyeOpeningThreshold(_pHandle.value, eyeOpeningThreshold);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}