What is rPPG?
Remote photoplethysmography (rPPG) extracts heart rate from subtle color changes in facial skin captured by a standard camera. No contact sensor is needed — just a webcam.Installation
Basic Usage
RppgProcessor
The main class that processes a stream of color samples and produces heart rate estimates.Constructor
| Parameter | Type | Description |
|---|---|---|
backend | "wasm" or "native" | Processing backend |
sampleRate | number | Expected frames per second (e.g., 30) |
windowSeconds | number | Analysis window length (default: 10) |
Pushing Samples
Three methods for different input formats:Getting Metrics
Metrics includes:
| Field | Type | Description |
|---|---|---|
bpm | number | Estimated heart rate in BPM |
quality | number | Signal quality (0-1) |
spectralBpm | number | Spectral analysis estimate |
acfBpm | number | Autocorrelation estimate |
confidence | number | Overall confidence |
Particle Tracker
Enable for more robust BPM tracking:State Persistence
Save and restore processor state:Next
Frame Sources
MediaPipe face detection and camera capture
Calibration
Muse fusion and calibration models
Camera Integration Guide
End-to-end rPPG setup