faceMeshLandmarkOffset function

Offset faceMeshLandmarkOffset(
  1. FaceMeshResult result,
  2. FaceMeshLandmark landmark, {
  3. Size? targetSize,
  4. bool clampToBounds = true,
  5. int rotationDegrees = 0,
  6. bool mirrorHorizontal = false,
})

Converts a landmark to a pixel-space Offset.

Implementation

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