Live data from Hacker News

Webcam Pulse Detector

github.com

61–70 of 85 posts

Re: Webcam Pulse Detector

#61
I haven't downloaded this yet, but I certainly will. If it is accurate and reasonably precise (yea, what does that mean?), I'd like to have it running in the background, gathering data as I work, while also gathering statistics about my work. I, like most of the people here, am a productivity junky. I wonder if a heightened pulse could indicate mounting stress, which necessitates a break. Sure, I have other machinery that could indicate mounting stress -- like my mind -- but the quantitative, off-loaded metric shifts responsibility in a way that could be helpful. "I'm not really stressed," says me to my brain. "No, your heart rate is quite high," says my computer to me.

Re: Webcam Pulse Detector

#64
post #40
post #2

The paper that this is based on is also pretty fascinating: Eulerian Video Magnification for Revealing Subtle Changes in the World http://people.csail.mit.edu/mrub/vidmag/

Patented :'(

What's exactly patented? I remember earlier papers on pulse detection than the one on the page.

Re: Webcam Pulse Detector

#65

I haven't downloaded this yet, but I certainly will. If it is accurate and reasonably precise (yea, what does that mean?), I'd like to have it running in the background, gathering data as I work, while also gathering statistics about my work. I, like most of the people here, am a productivity junky. I wonder if a heightened pulse could indicate mounting stress, which necessitates a break. Sure, I have other machinery…

You could get better results with a Bluetooth pulse monitor.

Re: Webcam Pulse Detector

#66

Earlier quoted context omitted.

On each heartbeat, blood is pushed and makes the skin nearly unperceivably redder. By watching for and tracking this subtle change, you can extract a heartbeat.

> ... unperceivably redder But why is he analyzing the green channel then? :)

Look at the absorption spectra at http://omlc.ogi.edu/spectra/hemoglobin/index.html. Green is ~510nm, red is ~650nm, blue is ~475nm. The difference between the absorption of Hb and HbO2 in the red range is the reason why pulse oximeters use red. In this case, we don't care about differentiating oxy- vs. deoxy-hemoglobin, we just care about the total absorption. Since more light is absorbed at green than at red, it will show more of an effect with pulse.

I am not confident in this explanation, and still don't know why green over blue.

Re: Webcam Pulse Detector

#67
post #65

I haven't downloaded this yet, but I certainly will. If it is accurate and reasonably precise (yea, what does that mean?), I'd like to have it running in the background, gathering data as I work, while also gathering statistics about my work. I, like most of the people here, am a productivity junky. I wonder if a heightened pulse could indicate mounting stress, which necessitates a break. Sure, I have other machinery…

You could get better results with a Bluetooth pulse monitor.

That probably requires wearing something, potentially on your finger. Webcam is much less intrusive.

Re: Webcam Pulse Detector

#68
I've gotten this far trying to install this on Lion:

brew install gfortran

sudo easy_install scipy

sudo port install opencv +python27

export PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/:$PYTHONPATH

wget http://openmdao.org/releases/0.5.0/go-openmdao.py

sudo python ./go-openmdao.py

cd ~/Downloads/webcam-pulse-detector-master/openmdao-0.5.0

. bin/activate

cd ~/Downloads/webcam-pulse-detector-master && python get_pulse.py

Hope it's helpful to anyone else doing the same. OpenCV is segfaulting now, but I may update this later if I get it.

Re: Webcam Pulse Detector

#69
post #38

Give it a video feed from a political debate and live-tweet the politicians pulse on different topics. I foresee a future of politicians sporting bangs and bob cuts.

They're already so heavily made-up for the cameras I would be surprised if this worked.

Necks might not be, or hands.

This would probably be a bad metric though, you might accidentally be selecting for sociopathic traits or something which might be undesirable in a politician.

Re: Webcam Pulse Detector

#70
post #65

Earlier quoted context omitted.

You could get better results with a Bluetooth pulse monitor.

That probably requires wearing something, potentially on your finger. Webcam is much less intrusive.

Typically a chest strap but yeah no disagreements here, it would be less convenient.
Post reply on HN