TrackedFace Class¶
Namespace: id3.Face
Definition¶
class TrackedFace
class TrackedFace implements Finalizable
public partial class TrackedFace
public class TrackedFace implements AutoCloseable, Serializable
public class TrackedFace
typedef struct id3TrackedFace *ID3_TRACKED_FACE;
Usage¶
trackedFaceInstance = TrackedFace()
# ...
Explicit destruction
# ...
del trackedFaceInstance
final trackedFaceInstance = sdk.TrackedFace();
// ...
Explicit destruction
// ...
trackedFaceInstance.dispose()
using (var trackedFaceInstance = new TrackedFace())
{
// ...
}
Explicit destruction
var trackedFaceInstance = new TrackedFace()
// ...
trackedFaceInstance.Dispose()
try (TrackedFace trackedFaceInstance = new TrackedFace()) {
// ...
}
Explicit destruction
TrackedFace trackedFaceInstance = new TrackedFace();
// ...
trackedFaceInstance.close();
private var trackedFaceInstance: TrackedFace? = nil
trackedFaceInstance = try TrackedFace()
ID3_TRACKED_FACE hTrackedFace{};
int err = id3TrackedFace_Initialize(&hTrackedFace);
if (err == ID3_SUCCESS) {
// ...
id3TrackedFace_Dispose(&hTrackedFace);
}
Properties¶
Name |
Type |
Description |
---|---|---|
Bounds of the detected face. |
||
int |
Confidence score of the detected face. |
|
Computed template the tracked face. It aims at tracking an identity over time and is consolidated. |
||
int |
ID of the detected face. |
|
Landmarks (eyes, nose and mouth corners) of the detected face. |
||
Predicted bounds of the tracked face. Those bounds are computed using a Kalman filter which has the effect of making them smooth and robust to false non-detections. |
||
Status of the tracked face. See FaceTrackingStatus for more details. |
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 TrackedFace object. |
|
Gets the tracked face as a detected face. |
|
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. |