FaceAnalyser Class

Namespace: id3.Face

Definition

Provides methods for analysing the characteristics of portrait image.
class FaceAnalyser
class FaceAnalyser implements Finalizable
public partial class FaceAnalyser
public class FaceAnalyser implements AutoCloseable, Serializable
public class FaceAnalyser
typedef struct id3FaceAnalyser *ID3_FACE_ANALYSER;

Usage

faceAnalyserInstance = FaceAnalyser()
# ...

Explicit destruction

# ...
del faceAnalyserInstance
final faceAnalyserInstance = sdk.FaceAnalyser();
// ...

Explicit destruction

// ...
faceAnalyserInstance.dispose()
using (var faceAnalyserInstance = new FaceAnalyser())
{
   // ...
}

Explicit destruction

var faceAnalyserInstance = new FaceAnalyser()
// ...
faceAnalyserInstance.Dispose()
try (FaceAnalyser faceAnalyserInstance = new FaceAnalyser()) {
// ...
}

Explicit destruction

FaceAnalyser faceAnalyserInstance = new FaceAnalyser();
// ...
faceAnalyserInstance.close();
private var faceAnalyserInstance: FaceAnalyser? = nil
faceAnalyserInstance = try FaceAnalyser()
ID3_FACE_ANALYSER hFaceAnalyser{};
int err = id3FaceAnalyser_Initialize(&hFaceAnalyser);
if (err == ID3_SUCCESS) {
    // ...
    id3FaceAnalyser_Dispose(&hFaceAnalyser);
}

Properties

Name

Type

Description

expressionSensibility

int

Sensibility of the expression classifier.

overExposureSensibility

int

Sensibility of the over-exposure classifier, from 0 to 255.

threadCount

int

Number of threads to be used for face analysis.

underExposureSensibility

int

Sensibility of the under-exposure classifier, from 0 to 255.

Methods

Name

Description

applyAlphaMask

Applies an alpha mask to suppress the background and returns a 32-bit BGRA image.

applyMask

Applies a mask to replace the background with the specified color and returns a 24-bit BGR image.

checkColorizedImage

Verifies if an image is colorized or grayscale.

computeAge

Computes the age of a detected face.

computeAttributes

Computes the attributes of a detected face.

computeBackgroundUniformity

Computes the background uniformity behind a detected face.

computeExpression

Computes the expression of a detected face.

computeEyeGaze

Computes the eye gaze of a detected face.

computeEyeOpenness

Computes the eye openness of a detected face.

computeEyeRedness

Computes the eye redness of a detected face.

computeGeometricAttributes

Computes the geometric attributes of a detected face. This function must be used for a portrait image with only one face in it.

computeGlassesAttributes

Computes the glasses attributes of a detected face. This function must be used for a portrait image with only one face in it.

computeLandmarks

Computes 68 landmarks of a detected face.

computeNoise

Measures the image noise.

computePhotographicAttributes

Computes the photographic attributes of a detected face. This function must be used for a portrait image with only one face in it.

computePose

Computes the pose of a detected face.

computePoseWithLandmarks

Computes the pose of a detected face using the specified 68-point landmarks.

detectFaceMask

Detects the presence of a face mask on a detected face.

detectOcclusions

Detects the presence of occlusions on top of a detected face.

segmentBackground

Computes face segmentation mask for background removal.

segmentFace

Computes a segmentation map of a face.