Skip to content

An app for remotely monitoring or detecting your pulse using a webcam focused on your face or skin

Notifications You must be signed in to change notification settings

nolanhergert/remote-pulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Explanation

The color change in your skin due to your pulse is very tiny. Normally, we can't see it, but because of the randomness of light particles ("shot noise"), we can extract the color change by averaging in time and space over a large number of pixels. It's a similar idea to Dithering, although we're looking at a movie instead of just an image.

Installation

Install Python, Numpy, and OpenCV. I have had best results using Python(x,y) on Windows, but you need to select OpenCV on the install for it to load the proper DLL's. Let me know what you find for other distributions and I'll add it to this README.

Additionally, you need to download my repository of common scripts, located here, and add it to the PYTHONPATH environmental variable.

Operation

Run main.py with either a webcam attached or a path to a pre-recorded video file. The best video is recorded in a lit environment (daylight is great) with minimal motion from the subject and passersby and minimal automatic adjustment and compression from the camera. An example video is included and runs by default.

Command line options python main.py runs default video. python main.py 0 runs off your default webcam. python main.py file.avi runs file.avi

To record a video

Run Video.py and it will output 15 seconds of uncompressed video into a file (default is webcam.avi).

Additional Notes

To Do

  • Finish explanation if demand warrants it.
  • Camera global Gain/White Balance Correction algorithm for removing annoying camera auto-corrections from the computed results. It probably needs to consider the image as a whole.

About

An app for remotely monitoring or detecting your pulse using a webcam focused on your face or skin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages