faceMeshLandmarksOffsets function

List<Offset> faceMeshLandmarksOffsets(
  1. FaceMeshResult result, {
  2. Size? targetSize,
  3. bool clampToBounds = true,
  4. int rotationDegrees = 0,
  5. bool mirrorHorizontal = false,
})

Converts all landmarks into pixel-space Offsets.

Implementation

List<Offset> faceMeshLandmarksOffsets(
  FaceMeshResult result, {
  Size? targetSize,
  bool clampToBounds = true,
  int rotationDegrees = 0,
  bool mirrorHorizontal = false,
}) => result.landmarksAsOffsets(
  targetSize: targetSize,
  clampToBounds: clampToBounds,
  rotationDegrees: rotationDegrees,
  mirrorHorizontal: mirrorHorizontal,
);