faceMeshLandmarkOffset function

Offset faceMeshLandmarkOffset(
  1. FaceMeshResult result,
  2. FaceMeshLandmark landmark, {
  3. Size? targetSize,
  4. bool clampToBounds = true,
})

Converts a landmark to a pixel-space Offset.

Implementation

Offset faceMeshLandmarkOffset(
  FaceMeshResult result,
  FaceMeshLandmark landmark, {
  Size? targetSize,
  bool clampToBounds = true,
}) => result.landmarkAsOffset(
  landmark,
  targetSize: targetSize,
  clampToBounds: clampToBounds,
);