Skip to content

pdadial/pyHeart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyHeart

Measure heartrate using fingertip placed over webcam.

A real-time application of IIR filter to detect heart rate by placing index finger over the webcam. The webcam’s sampling rate is used to sample values from the green channel. These values are then filtered using a chain of two 2nd order bandpass IIR filters and the filtered samples are stored in a temporary ring buffer for detecting the peaks representing heartbeats, which are then used to calculate momentary heart rate.
alt text

Prerequisites

pip3 install opencv-contrib-python
pip3 install opencv-python

How to use

python hr_main.py

Releases

No releases published

Packages

No packages published

Languages