# getGlasses method

int getGlasses()

Gets the value indicating whether the subject wears glasses. -1 if not computed. The range is 0-100, 100 meaning glasses are detected.

return Value indicating whether the subject wears glasses. -1 if not computed. The range is 0-100, 100 meaning glasses are detected. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getGlasses() {
      Pointer<Int> pGlasses = calloc();
      try {
        var err = faceSDK.id3FacePortrait_GetGlasses(_pHandle.value, pGlasses);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vGlasses = pGlasses.value;
        return vGlasses;
      } finally {
        calloc.free(pGlasses);
      }
    }