# computeBlurrinessScore method

int computeBlurrinessScore(

1. Image image,
2. DetectedFace detectedFace

)

Computes a blurriness score for a color image. An attack presented on a low resolution support has more chance to be blurred than a bonafide. The maximum recommended value is 20. Important: Loading the model `FaceBlurrinessDetector` is required to use this function.

param image Source image to process. param detectedFace Detected face to process. return The computed blurriness score, in the range (0;100). throws FaceException An error has occurred during Face Library execution.

## Implementation

    int computeBlurrinessScore(Image image, DetectedFace detectedFace) {
      Pointer<Int> pScore = calloc();
      try {
        var err = faceSDK.id3FacePad_ComputeBlurrinessScore(_pHandle.value, image.handle, detectedFace.handle, pScore);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vScore = pScore.value;
        return vScore;
      } finally {
        calloc.free(pScore);
      }
    }