# getRedEyeThreshold method

int getRedEyeThreshold()

Gets the threshold for confirming the presence of red eyes. Hint: Default value is 10.

return Threshold for confirming the presence of red eyes. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getRedEyeThreshold() {
      Pointer<Int> pRedEyeThreshold = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetRedEyeThreshold(_pHandle.value, pRedEyeThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vRedEyeThreshold = pRedEyeThreshold.value;
        return vRedEyeThreshold;
      } finally {
        calloc.free(pRedEyeThreshold);
      }
    }