# getFaceMaskThreshold method

int getFaceMaskThreshold()

Gets the face mask detection threshold. If the detection score is above this value, the person is probably wearing a mask. Hint: Default value is 35.

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

## Implementation

    int getFaceMaskThreshold() {
      Pointer<Int> pFaceMaskThreshold = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetFaceMaskThreshold(_pHandle.value, pFaceMaskThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vFaceMaskThreshold = pFaceMaskThreshold.value;
        return vFaceMaskThreshold;
      } finally {
        calloc.free(pFaceMaskThreshold);
      }
    }