# computeQuality method

int computeQuality(

1. Image image,
2. DetectedFace detectedFace

)

Computes the quality of a detected face. Here, quality expresses the match capability of an image: a high quality image will generate less match errors (false acceptance or false rejection) than a low quality one. Warning: A minimum interocular distance (IOD) of 30 pixels for the detected face is required for this function, below this value it will output an error. Important: Loading the `FaceEncodingQualityEstimator` model is required to use this function.

param image Source image to process. param detectedFace Detected face to process. return The estimated quality of the detected face. Range is (0:100). throws FaceException An error has occurred during Face Library execution.

## Implementation

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