Skip to content

This project measures a person's heart rate using a regular webcam by detecting subtle color changes in the facial skin caused by blood flow. It leverages computer vision techniques to detect the face and isolate a region of interest. The extracted signal is processed using Fast Fourier Transform (FFT) to estimate the heart rate in beats per minute

Notifications You must be signed in to change notification settings

Anujmishra2005/Heart-Rate-Measurement-using-camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heart Rate Measurement using Camera 📸❤️

This project demonstrates how to measure a user's heart rate using a standard webcam by analyzing subtle changes in facial skin tone caused by blood flow. It uses computer vision and signal processing techniques to estimate pulse rate in real-time.


🚀 Features

  • Real-time heart rate monitoring using webcam
  • Face detection and tracking
  • Region of interest (ROI) extraction from forehead or cheeks
  • Signal extraction using photoplethysmography (PPG) principles
  • Frequency analysis using Fast Fourier Transform (FFT)
  • BPM (Beats Per Minute) calculation and display

📸 How It Works

  1. Captures live video feed using the webcam.
  2. Detects the face and selects a region of interest (ROI).
  3. Analyzes the subtle color variations due to blood flow.
  4. Applies Fast Fourier Transform (FFT) to the signal to find the dominant frequency.
  5. Converts the frequency into Beats Per Minute (BPM).

🛠️ Technologies Used

  • Python 3.x
  • OpenCV
  • NumPy
  • SciPy
  • Dlib / Mediapipe (for face detection and tracking)
  • Matplotlib (optional, for visualizing signals)

📦 Installation

  1. Clone the repository:
git clone https://github.com/your-username/Heart-Rate-Measurement-using-camera.git
cd Heart-Rate-Measurement-using-camera

About

This project measures a person's heart rate using a regular webcam by detecting subtle color changes in the facial skin caused by blood flow. It leverages computer vision techniques to detect the face and isolate a region of interest. The extracted signal is processed using Fast Fourier Transform (FFT) to estimate the heart rate in beats per minute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages