# setSharpnessThreshold method

void setSharpnessThreshold(

1. int sharpnessThreshold

)

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

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

## Implementation

    void setSharpnessThreshold(int sharpnessThreshold) {
      var err = faceSDK.id3FacePortraitProcessor_SetSharpnessThreshold(_pHandle.value, sharpnessThreshold);
      if (err != FaceError.success.value) {
        throw FaceException(err);
      }
    }