FacePad.computeBlurrinessScore Method

Module: FacePad

Definition

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.

int computeBlurrinessScore(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

int
The computed blurriness score, in the range [0;100].

Exceptions

An error has occurred during Face Library execution.