getLargestFace method

TrackedFace getLargestFace()

Gets the largest face in the list.

return The largest tracked face in the list. throws FaceException An error has occurred during Face Library execution.

Implementation

TrackedFace getLargestFace() {
  TrackedFace largestFace = TrackedFace();
  var err = faceSDK.id3TrackedFaceList_GetLargestFace(_pHandle.value, largestFace.handle);
  if (err != FaceError.success.value) {
    largestFace.dispose();
    throw FaceException(err);
  }
  return largestFace;
}