FaceEncoder.computeQuality Method¶
Module: FaceEncoder
Definition¶
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 FaceEncodingQualityEstimator3A model is required to use this function.
compute_quality(self, image: Image, detected_face: DetectedFace) -> int
Parameters
Returns
int
The estimated quality of the detected face. Range is [0:100].
Exceptions
An error has occurred during Face Library execution.
int computeQuality(Image image, DetectedFace detectedFace)
Parameters
Returns
int
The estimated quality of the detected face. Range is [0:100].
Exceptions
An error has occurred during Face Library execution.
public int ComputeQuality(Image image, DetectedFace detectedFace)
Parameters
Returns
int
The estimated quality of the detected face. Range is [0:100].
Exceptions
An error has occurred during Face Library execution.
public int computeQuality(Image image, DetectedFace detectedFace) throws FaceException
Parameters
Returns
int
The estimated quality of the detected face. Range is [0:100].
Exceptions
An error has occurred during Face Library execution.
public func computeQuality(image: Image, detectedFace: DetectedFace) throws -> Int32
Parameters
Returns
Int
The estimated quality of the detected face. Range is [0:100].
Exceptions
An error has occurred during Face Library execution.
int id3FaceEncoder_ComputeQuality (
ID3_FACE_ENCODER hFaceEncoder,
ID3_FACE_IMAGE hImage,
ID3_DETECTED_FACE hDetectedFace,
int * quality)
Parameters
hFaceEncoder
ID3_FACE_ENCODERin Handle to the FaceEncoder object.hImage
ID3_FACE_IMAGEin Source image to process.hDetectedFace
ID3_DETECTED_FACEin Detected face to process.quality
int *out The estimated quality of the detected face. Range is [0:100].
Returns