This is a heart rate monitoring application with a graphical user interface (GUI) built using PyQt5 and OpenCV. It captures images from a webcam or video file and calculates the heart rate by processing the images.
- Capture real-time video from a webcam or load a video file.
- Process the captured frames to detect the user's pulse rate.
- Display the real-time heart rate on the GUI.
- numpy
- opencv-python
- PyQt5
- pyqtgraph
- scipy
-
Clone the repository:
git clone https://github.com/zin-Fu/WristRateMonitor.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application by executing the
GUI.py
script:python GUI.py
-
The GUI window will open, providing options to select the video source (webcam or video file) and adjust the settings.
-
Click the "Start" button to begin capturing and processing the video frames.
-
The heart rate will be calculated and displayed in real-time on the GUI.
The project consists of the following files:
GUI.py
: Contains the graphical user interface (GUI) implementation using PyQt5 and OpenCV.interface.py
: Handles the image processing and data visualization using the OpenCV library.process.py
: Detects the pulse and calculates the heart rate. It utilizes OpenCV for image processing, NumPy for data handling, and SciPy for signal processing.signal_process.py
: Contains a signal processing class with various methods for data analysis and processing.video.py
: Handles the processing of video files.webcam.py
: Handles the processing of video streams from a webcam.
This project is licensed under the MIT License. See the LICENSE file for details.