# getEyeOcclusionThreshold method

int getEyeOcclusionThreshold()

Gets the visible eye threshold. If the score is above this value, the eye is probably occluded. Hint: Default value 80.

return Visible eye threshold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getEyeOcclusionThreshold() {
      Pointer<Int> pEyeOcclusionThreshold = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetEyeOcclusionThreshold(_pHandle.value, pEyeOcclusionThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vEyeOcclusionThreshold = pEyeOcclusionThreshold.value;
        return vEyeOcclusionThreshold;
      } finally {
        calloc.free(pEyeOcclusionThreshold);
      }
    }