Skip to content

darkruby501/darkruby501.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

darkruby501.github.io

Javascript Photoplethysmogram Webcam Pulse Detector

<Insert Copyright Info (Ruben Bloom, 2014 + others)>

Based on https://github.com/thearn/webcam-pulse-detector

Uses:

To-Do:

  • Debug operation in Mozilla Firefox.
  • Fix hardcoding of canvas sizes.
  • Potentially use only facedetection algorithm and no headtracking.
  • Use rotated head capture for forehead.
  • Refine FFT (windowing, etc.)
  • Apply smoothing to output? WMA?
  • Tidy variables.

Potential Ways to Boost Accuracy:

  • Windowing on FFT
  • Filtering of Pulse Wave (band pass?).
  • Smoothing of Output (discard outliers)
  • Button to flush buffer
  • Automatically flush buffer when large movement detected (or rectange grows enormously in size)
  • Green background!
  • ICA: Of course, how could I forget that one!
  • Only accept value if one distinct peak?
  • Checks for when rectangle isn't completely on forehead? Outlier pixel values?

Notes:

  • Does the processing and pixel capture need to be linked to the head tracking? Seemingly not. Better to use head tracking to update position, and then separate periodic timer to do heart rate analysis. This modularity also allows for different ways of getting the forehead location, e.g. "locate and lock" as in the Python package.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published