# getEyeOpeningThreshold method

int getEyeOpeningThreshold()

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

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

## Implementation

    int getEyeOpeningThreshold() {
      Pointer<Int> pEyeOpeningThreshold = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetEyeOpeningThreshold(_pHandle.value, pEyeOpeningThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vEyeOpeningThreshold = pEyeOpeningThreshold.value;
        return vEyeOpeningThreshold;
      } finally {
        calloc.free(pEyeOpeningThreshold);
      }
    }