PortraitProcessor Class¶
Namespace: id3.Face
Definition¶
class PortraitProcessor
class PortraitProcessor implements Finalizable
public partial class PortraitProcessor
public class PortraitProcessor implements AutoCloseable, Serializable
public class PortraitProcessor
typedef struct id3FacePortraitProcessor *ID3_FACE_PORTRAIT_PROCESSOR;
Usage¶
portraitProcessorInstance = PortraitProcessor()
# ...
Explicit destruction
# ...
del portraitProcessorInstance
final portraitProcessorInstance = sdk.PortraitProcessor();
// ...
Explicit destruction
// ...
portraitProcessorInstance.dispose()
using (var portraitProcessorInstance = new PortraitProcessor())
{
// ...
}
Explicit destruction
var portraitProcessorInstance = new PortraitProcessor()
// ...
portraitProcessorInstance.Dispose()
try (PortraitProcessor portraitProcessorInstance = new PortraitProcessor()) {
// ...
}
Explicit destruction
PortraitProcessor portraitProcessorInstance = new PortraitProcessor();
// ...
portraitProcessorInstance.close();
private var portraitProcessorInstance: PortraitProcessor? = nil
portraitProcessorInstance = try PortraitProcessor()
ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor{};
int err = id3FacePortraitProcessor_Initialize(&hPortraitProcessor);
if (err == ID3_SUCCESS) {
// ...
id3FacePortraitProcessor_Dispose(&hPortraitProcessor);
}
Properties¶
Name |
Type |
Description |
---|---|---|
int |
Background color uniformity threshold. |
|
int |
Background structure uniformity threshold. |
|
int |
Face dynamic range threshold. |
|
bool |
Value indicating whether age estimation is enabled. |
|
bool |
Value indicating whether background uniformity computation is enabled. |
|
bool |
Value indicating whether expression detection is enabled. |
|
bool |
Value indicating whether eye gaze detection is enabled. |
|
bool |
Value indicating whether eye opening detection is enabled. |
|
bool |
Value indicating whether face mask detection is enabled. |
|
bool |
Value indicating whether gender estimation is enabled. |
|
bool |
Value indicating whether eye glasses detection is enabled. |
|
bool |
Value indicating whether hat detection is enabled. |
|
bool |
Value indicating whether makeup detection is enabled. |
|
bool |
Value indicating whether mouth opening detection is enabled. |
|
bool |
Value indicating whether occlusion detection is enabled. |
|
bool |
Value indicating whether photographic quality computation is enabled. |
|
bool |
Value indicating whether presentation attack detection using passive methods is enabled. |
|
bool |
Value indicating whether red eye detection is enabled. |
|
bool |
Value indicating whether smile detection is enabled. |
|
int |
Equal brightness threshold. |
|
int |
Sensibility of the expression classifier. |
|
int |
Visible eye threshold. |
|
int |
Eye opening threshold. |
|
Specifies the model used to detect and track faces. |
||
int |
Face detection strength, from 1 to 10. |
|
int |
Specifies the face detection confidence threshold, in the range is [0;100]. |
|
Model used to create features and assess consistancy among views of a given face. |
||
int |
Face mask detection threshold. |
|
int |
Glasses detection threshold. |
|
int |
Threshold for confirming that the person is wearing a hat. |
|
int |
Make-up detection threshold. |
|
int |
Male gender detection threshold. |
|
int |
Maximum value of the eye gaze alongside the X axis. |
|
int |
Maximum value of the eye gaze alongside the Y axis. |
|
int |
Maximum distance between the base of the chin and the crown is less than 80% of the total height of the image. |
|
int |
Value indicating if the image width is conform to the (image width / head width) ratio of 7:5. |
|
int |
Value indicating if the head is correctly centered horizontally. |
|
int |
Maximum interocular distance (IOD), in pixels. |
|
float |
Maximum head pitch angle, in degrees. |
|
float |
Maximum head roll angle, in degrees. |
|
int |
Maximum number of consecutive non-detections to reach before deleting a tracked face. |
|
int |
Maximum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image. |
|
float |
Maximum head yaw angle, in degrees. |
|
int |
Minimum distance between the base of the chin and the crown is less than 80% of the total height of the image. |
|
int |
Value indicating if the image width is conform to the (image width / head width) ratio of 7:5. |
|
int |
Value indicating if the head is correctly centered horizontally. |
|
int |
Minimum intra-occular distance, in pixels. |
|
int |
Minimum number of consecutive detections to reach before creating a tracked face. |
|
int |
Minimum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image. |
|
int |
Mouth occlusion threshold. |
|
int |
Mouth opening threshold. |
|
int |
Natural skin color threshold. |
|
int |
Flash reflexion detection threshold. |
|
int |
Threshold for confirming the presence of noise in the image. |
|
int |
Nose occlusion threshold. |
|
int |
Over exposure threshold. |
|
int |
Threshold of the attack support PAD method. |
|
int |
Pixelation detection threshold. |
|
float |
Aspect ratio (height to width) of the portrait image. |
|
float |
Ratio between the vertical eye position and the image height for ICAO portrait cropping. Must be in the range ]0;1[. |
|
float |
Ratio between the interocular distance (IOD) and the image width for ICAO portrait cropping. Must be in the range ]0;1[. |
|
float |
Relative margin around the face for portrait cropping. |
|
int |
Threshold for confirming the presence of red eyes. |
|
int |
Threshold indicating whether the image resolution is sufficient. |
|
int |
Sharpness threshold. |
|
int |
Smile threshold. |
|
int |
Number of threads to be used for portrait processing. |
|
int |
Tinted glass detection threshold. |
|
int |
Minimum match score to reach to preserve the ID of a tracked face between frame ‘t-1’ and frame ‘t’. |
|
int |
Non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range [0;100]. |
|
int |
Under exposure threshold. |
Methods¶
Name |
Description |
---|---|
Checks the background uniformity of the specified portrait. |
|
Checks the geometric attributes of the specified portrait. |
|
Checks the photographic quality of the specified portrait. |
|
Analyses an image and creates a portrait with the first detected face or the currently tracked face if the update parameter is activated. |
|
Creates an ICAO-compliant portrait image by cropping the source image around the detected face. |
|
Creates a portrait image by cropping the source image around the detected face. |
|
Detects the subject’s expression on the specified portrait. |
|
Estimates the age of the person. |
|
Removes the background on the specified portrait image. |
|
Resets the face tracker. |