faceMeshBoundingRect function

Rect faceMeshBoundingRect(
  1. FaceMeshResult result, {
  2. Size? targetSize,
  3. bool clampToBounds = true,
})

Returns the face bounding box in pixel coordinates.

Implementation

Rect faceMeshBoundingRect(
  FaceMeshResult result, {
  Size? targetSize,
  bool clampToBounds = true,
}) => result.boundingRect(targetSize: targetSize, clampToBounds: clampToBounds);