Skip to content

salvatoredebenedictis/fingertip_rPPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vital Estimation from Fingertip Video Images

This project aims to estimate the oxygen saturation and vital signs (heart rate and breath rate) of an individual using the rPPG (remote photoplethysmography) technique. The project utilizes computer vision and image processing techniques to analyze fingertip images captured from a webcam.

Prerequisites

Before running the project, make sure you have the following dependencies installed:

  • Python 3.x
  • OpenCV
  • Mediapipe
  • Matplotlib
  • NumPy
  • Scipy

You can install the required dependencies by running the following command:

Copy code pip install opencv-python mediapipe matplotlib numpy

Usage

  1. Clone the project repository and navigate to the project directory.
  2. Run the Vital_Estimation_Fingertip.py script using Python.

The script will access your webcam and start capturing fingertip images. Press 'q' to stop the image capture process or wait until the needed frames are collected. The mean and standard deviation of each collected image will be computed. Regions of interest (ROIs) will be extracted from the fingertip images. Reconstructed images will be displayed to visualize the ROIs. The mean values for each ROI's channel will be computed. The heart rate and breath rate signals will be calculated using the alpha_function method. The computed signals will be plotted for visualization. The oxygen saturation, heart rate, and breath rate of the individual will be estimated using the high_peak and oxygen_saturation methods and will then be displayed. Note: Make sure your environment has proper lighting conditions and that your fingertip is clearly visible in the webcam feed.

Output

The script will output the following information:

  • Estimation of oxygen saturation;
  • Estimation of heart rate;
  • Estimation of breath rate.

Plot examples

1. MediaPipe's Hand Landmarks

plot

1.1 How it works using our system

plot

2. RGB Channels before being Processed

plot

3. ROIs RGB Channels Means (after being Processed)

plot

4. Heart and Breath Rate Signals

plot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages