face_mesh_stream_processor library
Classes
- FaceMeshStreamProcessor
- Helper that turns a stream of camera frames into MediaPipe results.
Functions
-
createFaceMeshStreamProcessor(
FaceMeshProcessor processor) → FaceMeshStreamProcessor - Creates a stream processor for camera/image frames.
-
faceMeshBoundingRect(
FaceMeshResult result, {Size? targetSize, bool clampToBounds = true}) → Rect - Returns the face bounding box in pixel coordinates.
-
faceMeshLandmarkOffset(
FaceMeshResult result, FaceMeshLandmark landmark, {Size? targetSize, bool clampToBounds = true}) → Offset - Converts a landmark to a pixel-space Offset.
-
faceMeshLandmarksOffsets(
FaceMeshResult result, {Size? targetSize, bool clampToBounds = true}) → List< Offset> - Converts all landmarks into pixel-space Offsets.
Typedefs
-
FaceMeshBoxResolver<
T> = FaceMeshBox? Function(T frame) - Signature used to derive a bounding box from an incoming frame.