# setEyeOcclusionThreshold method

void setEyeOcclusionThreshold(

1. int eyeOcclusionThreshold

)

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

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

## Implementation

    void setEyeOcclusionThreshold(int eyeOcclusionThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetEyeOcclusionThreshold(_pHandle.value, eyeOcclusionThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }