Skip to main content

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

Requirements: Node.js 18+, browser with camera access and WebAssembly support.

Basic Usage


RppgProcessor

The main class that processes a stream of color samples and produces heart rate estimates.

Constructor

Pushing Samples

Three methods for different input formats:

Getting Metrics

Metrics includes:

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