FaceAnalyser Class¶
Namespace: id3.Face
Definition¶
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 |
---|---|---|
int |
Sensibility of the expression classifier. |
|
int |
Sensibility of the over-exposure classifier, from 0 to 255. |
|
int |
Number of threads to be used for face analysis. |
|
int |
Sensibility of the under-exposure classifier, from 0 to 255. |
Methods¶
Name |
Description |
---|---|
Applies an alpha mask to suppress the background and returns a 32-bit BGRA image. |
|
Applies a mask to replace the background with the specified color and returns a 24-bit BGR image. |
|
Verifies if an image is colorized or grayscale. |
|
Computes the age of a detected face. |
|
Computes the attributes of a detected face. |
|
Computes the background uniformity behind a detected face. |
|
Computes the expression of a detected face. |
|
Computes the eye gaze of a detected face. |
|
Computes the eye openness of a detected face. |
|
Computes the eye redness of a detected face. |
|
Computes the geometric attributes of a detected face. This function must be used for a portrait image with only one face in it. |
|
Computes the glasses attributes of a detected face. This function must be used for a portrait image with only one face in it. |
|
Computes 68 landmarks of a detected face. |
|
Measures the image noise. |
|
Computes the photographic attributes of a detected face. This function must be used for a portrait image with only one face in it. |
|
Computes the pose of a detected face. |
|
Computes the pose of a detected face using the specified 68-point landmarks. |
|
Detects the presence of a face mask on a detected face. |
|
Detects the presence of occlusions on top of a detected face. |
|
Computes face segmentation mask for background removal. |
|
Computes a segmentation map of a face. |