thearn / webcam-pulse-detector

A python application that detects and highlights the heart-rate of an individual (using only their own webcam) in real-time.
Other
3.14k stars 592 forks source link

Feature Request: zero-pad the fft #24

Open mike-lawrence opened 10 years ago

mike-lawrence commented 10 years ago

I'm no expert in signal processing, but so far as I've been able to tell through reading online, it seems that zero-padding the fft seems to improve speed (if you zero-pad so that the signal length is a power of 2) and possibly accuracy.

thearn commented 10 years ago

Possibly, though it should be noted that what I'm actually taking the FFT of is an interpolated resampling of the raw data, to correct for inconsistent framerate acquisition from the camera being used. Once interpolated, a Hanning window is applied, then the FFT is taken. I may experiment with this some more.