# setGlassesThreshold method

void setGlassesThreshold(

1. int glassesThreshold

)

Sets the glasses detection threshold. If the score is above this value, the person is probably wearing glasses. Hint: Default value 90.

param glassesThreshold Glasses detection threshold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    void setGlassesThreshold(int glassesThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetGlassesThreshold(_pHandle.value, glassesThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }