trackFaces method

void trackFaces(
  1. Image image,
  2. DetectedFaceList detectedFaceList
)

Tracks faces in an image and update their info in a DetectedFaceList object. In a realtime process, one must use this function instead of DetectFaces() to keep the face IDs stable in time. Note: 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 detection process. Important: Loading a FaceDetector model is required to use this function. Warning: This function is deprecated: use the FaceTracker module instead.

param image Source image to process. param detectedFaceList List of detected faces. throws FaceException An error has occurred during Face Library execution.

Implementation

void trackFaces(Image image, DetectedFaceList detectedFaceList) {
  var err = faceSDK.id3FaceDetector_TrackFaces(_pHandle.value, image.handle, detectedFaceList.handle);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}