Coder Social home page Coder Social logo

hiraksarkar / eulerian-remote-heartrate-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rohintangirala/eulerian-remote-heartrate-detection

0.0 0.0 0.0 36.37 MB

Remote heart rate detection through Eulerian magnification of face videos

Python 100.00%

eulerian-remote-heartrate-detection's Introduction

Remote Heart Rate Detection through Eulerian Magnification of Face Videos

An implementation of the Eulerian video magnification computer vision algorithm initially developed by MIT CSAIL. This program uses the method for the application of remotely detecting an individual's heart rate in beats per minute from a still video of his/her face.

Built with OpenCV, NumPy, and SciPy in Python 3

Program organization:

The main.py file contains the main program that utilizes all of the other modules defined in the other code files to read in the input video, run Eulerian magnification on it, and to display the results. The purposes of the other files are described below:

  • preprocessing.py - Contains function to read in video from file and uses Haar cascade face detection to select an ROI on all frames
  • pyramids.py - Contains functions to generate and collapse image/video pyramids (Gaussian/Laplacian)
  • eulerian.py - Contains function for a temporal bandpass filter that uses a Fast-Fourier Transform
  • heartrate.py - Contains function to calculate heart rate from FFT results

How to run:

To run the program, specify the path to the input video in the preprocessing.read_video() function on line 13 of main.py. To alter the frequency range to be filtered, change the values assigned to freq_min and freq_max on lines 8 and 9.

eulerian-remote-heartrate-detection's People

Contributors

fkgk avatar rohintangirala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.