FrameSource Interface
All frame sources implement this interface:MediaPipeFrameSource
Captures camera frames and uses MediaPipe for face detection, providing a face ROI with each frame:MediaPipeFaceFrameSource
A more specialized variant that uses MediaPipe FaceLandmarker for facial landmark detection. Each frame carries the face ROI plus forehead and cheek sub-ROIs, landmarks, and blendshapes:loadFaceLandmarker
Loads MediaPipe FaceLandmarker (with blendshapes) from a CDN. Returnsnull
when face tracking is unavailable, so you can fall back to MediaPipeFrameSource:
DemoRunner
DemoRunner orchestrates a frame source and RppgProcessor together, handling ROI extraction, skin masking, and stats reporting:
DemoRunnerOptions
ROI Helper
Extract average green channel intensity from a region of interest:Next
Calibration and Fusion
Muse PPG calibration models
rppg-web Getting Started
Install and configure rppg-web