trackFaces method
- Image image,
- TrackedFaceList trackedFaceList
Tracks faces in an image and update their info in a TrackedFaceList object.
The algorithm searches for faces in the range (16px;512px). If the image is too large to fit this range, one must resize it before the tracking process.
In a realtime process, one must use this function to keep the face IDs stable in time.
Important: Loading a FaceDetector and a FaceEncoder model is required to use this function.
param image Source image to process. param trackedFaceList List of tracked faces. throws FaceException An error has occurred during Face Library execution.
Implementation
void trackFaces(Image image, TrackedFaceList trackedFaceList) {
var err = faceSDK.id3FaceTracker_TrackFaces(_pHandle.value, image.handle, trackedFaceList.handle);
if (err != FaceError.success.value) {
throw FaceException(err);
}
}