Portrait Class¶
Namespace: id3.Face
Definition¶
class Portrait
class Portrait implements Finalizable
public partial class Portrait
public class Portrait implements AutoCloseable, Serializable
public class Portrait
typedef struct id3FacePortrait *ID3_FACE_PORTRAIT;
Usage¶
portraitInstance = id3face.Portrait()
Explicit destruction
# ...
del portraitInstance
final portraitInstance = sdk.Portrait();
// ...
Explicit destruction
// ...
portraitInstance.dispose()
using (var portraitInstance = new Portrait())
{
// ...
}
Explicit destruction
var portraitInstance = new Portrait()
// ...
portraitInstance.Dispose()
try (Portrait portraitInstance = new Portrait()) {
// ...
}
Explicit destruction
Portrait portraitInstance = new Portrait();
// ...
portraitInstance.close();
private var portraitInstance: Portrait? = nil
portraitInstance = try Portrait()
ID3_FACE_PORTRAIT hPortrait{};
int err = id3FacePortrait_Initialize(&hPortrait);
if (err == ID3_SUCCESS) {
// ...
id3FacePortrait_Dispose(&hPortrait);
}
Properties¶
Name |
Type |
Description |
---|---|---|
int |
Estimated age of the subject. -1 if not computed. |
|
Result of the background uniformity computation. |
||
Estimated expression of the subject (angriness, disgust, fear, happiness, sadness, surprise, or neutral). Unknown if not computed. |
||
Estimated gaze. |
||
int |
Unique face ID. |
|
int |
Value indicating whether a face mask is detected. The range is 0-100, 100 meaning a mask is detected. |
|
Face template. |
||
int |
Value indicating whether the subject is a male. -1 if not computed. The range is 0 (female) -100 (male). |
|
Geometric attributes. |
||
int |
Value indicating whether the subject wears glasses. -1 if not computed. The range is 0-100, 100 meaning glasses are detected. |
|
int |
Value indicating whether the subject wears a hat. -1 if not computed. The range is 0-100, 100 meaning a hat is detected. |
|
Source image. |
||
Center of the portrait in the source image. |
||
float |
Scale to be applied to the source image to display the portrait. |
|
Translation to be applied to the source image to display the portrait. |
||
Instruction to be given to the user for portrait capture. |
||
68-points landmarks. |
||
int |
Value estimating the opening of the left eye. -1 if not computed. The range is 0-100, 100 meaning the eye is fully opened. |
|
int |
Value estimating the visibility of the left eye. -1 if not computed. The range is 0-100, 100 meaning the left eye is fully visible. |
|
int |
Value estimating if the user is looking straight towards the camera. -1 if not computed. The range is 0-100, 100 meaning the look is straight. |
|
int |
Value indicating whether makeup is detected. -1 if not computed. The range is 0-100, 100 meaning makeup is detected. |
|
int |
Value indicating estimating the opening of the mouth. -1 if not computed. The range is 0-100, 100 meaning the mouth is fully open. |
|
int |
Value estimating the visibility of the mouth. -1 if not computed. The range is 0-100, 100 meaning the mouth is fully visible. |
|
int |
Value estimating the visibility of the nose. -1 if not computed. The range is 0-100, 100 meaning the nose is fully visible. |
|
int |
Score of the presentation attack detection. |
|
Status of the presentation attack detection. |
||
Photographic attributes. |
||
Face pose. |
||
Quality check points of the portrait. |
||
int |
Unified quality score, from 0 to 100. -1 if not computed. |
|
int |
Value estimating the opening of the left eye. -1 if not computed. The range is 0-100, 100 meaning the eye is fully opened. |
|
int |
Value estimating the visibility of the right eye. -1 if not computed. The range is 0-100, 100 meaning the right eye is fully visible. |
|
int |
Value indicating whether the subject is smiling. -1 if not computed. The range is 0-100, 100 meaning the person is smiling. |
|
Status of the portrait. |
||
Position of the subject in the image. |
||
Tracked face. |
Static Methods¶
Name |
Description |
---|---|
Imports the portrait object from a buffer. |