getLandmarks method

PointList getLandmarks()

Gets the landmarks (eyes, nose and mouth corners) of the detected face.

return Landmarks (eyes, nose and mouth corners) of the detected face. throws FaceException An error has occurred during Face Library execution.

Implementation

PointList getLandmarks() {
  PointList landmarks = PointList();
  var err = faceSDK.id3TrackedFace_GetLandmarks(_pHandle.value, landmarks.handle);
  if (err != FaceError.success.value) {
    landmarks.dispose();
    throw FaceException(err);
  }
  return landmarks;
}