Live data from Hacker News

Webcam Pulse Detector

github.com

31–40 of 85 posts

Re: Webcam Pulse Detector

#33
post #29
post #27

Earlier quoted context omitted.

And isn't this the case? 15 fps (worst case framerate) vs 3 bps (worst case heart rate)

I dont believe so. Since the heart rate could be much higher, it would alias, and the camera wouldn't be able to tell the difference between normal heart rate and low heart rate. This is what I suspect could happen, with two possible heart rates matching the same set of samples: http://upload.wikimedia.org/wikipedia/commons/2/28/AliasingS...

If your heart rate is higher than 3bps, you won't be sitting patiently in front of a webcam waiting for lock-on.

Sedentary (calm, sitting) heartrates go from ~40bpm for extremely fit people to ~90-100 for particularly unfit people. Higher than 100 is unusual for sedentary people, and works out to ~ 1.5bps. The waveforms in the pulse itself (note pulse, not ECG, which has much faster elements) speed up with the pulse, but I would estimate (could be wrong) that your highest frequency significant elements would be around 5hz for a 1.5bps heartrate.

Your example from wikimedia has a signal that is ten times faster than the sample rate - and the nyquist limit says this would be aliased. My back-of-the-envelope calcs above suggest a 5Hz signal at the high end against a 15Hz sampling at the low end, which is a ratio of 3:1, which is enough to satisfy nyquist.

Disclaimer: I am an ex-neuro tech and ex-sleep tech. I am used to sticking electrodes onto people and studying them. The exact form of the pulse wasn't big in my area, so maybe a cardio tech can chime in and correct me.

Re: Webcam Pulse Detector

#34
post #32

Cool fact, a Slovenian company that is now SF based has made this tech into an iPhone app a few months ago. -> http://www.azumio.com/apps/cardio-buddy-2/ I really like their apps and I'm quite proud that they originate from my neck of the woods.

[deleted]

Re: Webcam Pulse Detector

#35
post #30

what if someone created passwords based off of your brainwaves (assuming every brainwave is unique as a fingerprint)

The concept of "passthoughts" has been discussed recently. http://abcnews.go.com/blogs/technology/2013/04/passthoughts-...

It'll be interesting to see how robust that is against different levels of alertness. I clicked through but couldn't see any info on using it on tired people - and your EEG changes significantly with alertness level. Depends on what they're measuring though.

Re: Webcam Pulse Detector

#37
post #18

Has anyone been able to get it to work? Whenever I try to open the stats display, I get: OpenCV Error: Assertion failed (p.checkVector(2, CV_32S) >= 0) in polylines, file /tmp/buildd/opencv-2.3.1/modules/core/src/drawing.cpp, line 2064

I have the same problem and have opened an issue: https://github.com/thearn/webcam-pulse-detector/issues/1

Maybe somebody that knows more about OpenCV than I do can figure out what's wrong.

Re: Webcam Pulse Detector

#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.
Post reply on HN