Urgent.News

What's breaking now, across thousands of outlets.

Tech

How I Built a Real-Time rPPG Heart Rate Tracker in Python (POS Algorithm & Butterworth Filtering)

Continuous biometric monitoring usually requires dedicated contact hardware like smartwatches or pulse oximeters. However, standard laptop webcams can capture subtle skin color variations caused by blood volume pulses (BVP). To explore non-contact vital signs monitoring without specialized sensors, I built BioSense Tracker Pro—a real-time remote photoplethysmography (rPPG) framework in Python.…

Real-time remote photoplethysmography (rPPG) heart rate monitoring can be achieved without specialized sensors using a Python-based framework called BioSense Tracker Pro. This system processes skin color variations caused by blood volume pulses, which can be captured through a standard laptop webcam. The challenge lies in overcoming ambient camera noise and specular reflections that mask the desired signal.

To address these issues, the system employs a combination of the Plane-Orthogonal-to-Skin (POS) algorithm and Butterworth bandpass filtering. The POS algorithm projects temporal RGB signals onto a plane orthogonal to the skin tone vector, separating intensity variations from pulsatile variations. This effectively eliminates specular reflections caused by lighting fluctuations.

Next, a Butterworth bandpass filter is applied to the processed signal. Human resting heart rates typically range from 45 BPM to 240 BPM, corresponding to frequencies between 0.75 Hz and 4.0 Hz. The Butterworth bandpass filter removes high-frequency sensor noise and low-frequency motion drift, ensuring a clean signal for further analysis.

The core processing pipeline is designed to run on standard CPU threads with low latency, making it suitable for real-time applications. The project utilizes the Python 3.10+ programming language along with popular libraries such as OpenCV, NumPy, and SciPy for image processing and signal manipulation tasks.

For ease of use, a standalone executable package is also available for download. This allows users to test the BioSense Tracker Pro system without the need for setting up complex Python environments or installing additional dependencies. The source code is openly accessible on the GitHub repository linked in the project description.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Apple’s Other Recent ‘Duo’

I keep mentioning Apple’s 1992 groundbreaking PowerBook Duo series as a precedent of the iPhone Duo’s name. But of course in 2020, Apple released the MagSafe Duo Charger, a wonderful Lightning…

  • Apple released MagSafe Duo Charger in 2020.
  • PowerBook Duo project motto was "Best of Both Worlds".
  • PowerBook Duo embodied "Best of Both Worlds" philosophy.

Understanding IPTV Streaming Protocols in 2026: HLS vs MPEG-TS & Hardware Acceleration

Understanding IPTV Streaming Protocols in 2026: HLS vs MPEG-TS & Hardware Acceleration When analyzing video streaming architecture, live Internet Protocol Television (IPTV) presents unique engineering…

  • MPEG-TS delivers video in fixed-size packets with variable latency
  • HLS segments video into shorter chunks for adaptive bitrate switching
  • Hardware acceleration crucial for smooth playback on CPU-limited devices

More from Saturday 26 September →