# getGlassesThreshold method

int getGlassesThreshold()

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

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

## Implementation

    int getGlassesThreshold() {
      Pointer<Int> pGlassesThreshold = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetGlassesThreshold(_pHandle.value, pGlassesThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vGlassesThreshold = pGlassesThreshold.value;
        return vGlassesThreshold;
      } finally {
        calloc.free(pGlassesThreshold);
      }
    }