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 id3FaceModel_FaceBlurrinessDetector1A is required to use this function.

compute_blurriness_score(self, image: Image, detected_face: DetectedFace) -> int

Parameters

image Image
in Source image to process.

detected_face 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.
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.
public 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.
public int computeBlurrinessScore(Image image, DetectedFace detectedFace) throws FaceException

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.
public func computeBlurrinessScore(image: Image, detectedFace: DetectedFace) throws -> Int32

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.
int id3FacePad_ComputeBlurrinessScore (
    ID3_FACE_PAD hFacePad,
    ID3_FACE_IMAGE hImage,
    ID3_DETECTED_FACE hDetectedFace,
    int * score)

Parameters

hFacePad ID3_FACE_PAD
in Handle to the FacePad object.

in Source image to process.

hDetectedFace ID3_DETECTED_FACE
in Detected face to process.

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

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.