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.
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
- Clone the project repository and navigate to the project directory.
- 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.
The script will output the following information:
- Estimation of oxygen saturation;
- Estimation of heart rate;
- Estimation of breath rate.