# getSharpnessThreshold method

int getSharpnessThreshold()

Gets the sharpness threshold. If the sharpness score is above this value, the image sharpness is sufficient. Hint: Default value is 50.

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

## Implementation

    int getSharpnessThreshold() {
      Pointer<Int> pSharpnessThreshold = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetSharpnessThreshold(_pHandle.value, pSharpnessThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vSharpnessThreshold = pSharpnessThreshold.value;
        return vSharpnessThreshold;
      } finally {
        calloc.free(pSharpnessThreshold);
      }
    }