DetectedFace Class¶
Namespace: id3.Face
Definition¶
class DetectedFace
class DetectedFace implements Finalizable
public partial class DetectedFace
public class DetectedFace implements AutoCloseable, Serializable
public class DetectedFace
typedef struct id3DetectedFace *ID3_DETECTED_FACE;
Usage¶
detectedFaceInstance = DetectedFace()
# ...
Explicit destruction
# ...
del detectedFaceInstance
final detectedFaceInstance = sdk.DetectedFace();
// ...
Explicit destruction
// ...
detectedFaceInstance.dispose()
using (var detectedFaceInstance = new DetectedFace())
{
// ...
}
Explicit destruction
var detectedFaceInstance = new DetectedFace()
// ...
detectedFaceInstance.Dispose()
try (DetectedFace detectedFaceInstance = new DetectedFace()) {
// ...
}
Explicit destruction
DetectedFace detectedFaceInstance = new DetectedFace();
// ...
detectedFaceInstance.close();
private var detectedFaceInstance: DetectedFace? = nil
detectedFaceInstance = try DetectedFace()
ID3_DETECTED_FACE hDetectedFace{};
int err = id3DetectedFace_Initialize(&hDetectedFace);
if (err == ID3_SUCCESS) {
// ...
id3DetectedFace_Dispose(&hDetectedFace);
}
Properties¶
Static Methods¶
Name |
Description |
---|---|
Creates a detected face. |
|
Imports the face object from a buffer. |
|
Imports the face object from a file. |
Methods¶
Name |
Description |
---|---|
Clones the DetectedFace object. |
|
Gets the distance between the detected face and the camera when using a depth map in pixels. |
|
Gets the bounding box around the detected face with specified aspect ratio and specified margin. |
|
Gets the distance between the eyes (IOD) of the detected face in pixels. |
|
Gets the bounding box of the detected face for ICAO portrait cropping. |
|
Rescales the detected face object bounding box and landmarks. This function can be useful if the image was downscaled to speed up detection, then you need to upscale the detected face to fit the source image size. |
|
Rotates the face object by a given angle in degrees from a given center. |
|
Exports the face object to a buffer. |
|
Saves the face object to a file. |
|
Translates the face object. |