Giter VIP home page Giter VIP logo

smartphonecam-heartbeat-detection's Introduction

SmartphoneCam-Heartbeat-Detection

This is a project done as a part of the course Smart Sensing for IoT. It performs a time-domain and frequency domain analysis on data taken from a smartphone camera to figure out the pulse rate of a person. This is called PPG or Photoplethysmography.

The detailed report can be found here which essentially covers 4 aspects:

  • Survey of existing PPG Apps

  • Generating Test Datasets.

    • Lighting (Bright, Normal, Dark)
    • Post Processing (Down Sampling, Quantization, Smoothening)
  • Sensing Algorithm.

    • Time Domain Analysis (Peak finding)
    • Frequency Domain Analysis (FFT)
  • Evaluating Performance of the Algorithm

    • Effect of FPS
    • Effect of Resolution
    • FPS vs Resolution

Dependencies:

  • Numpy
  • OpenCV
  • Scipy
  • Matplotlib

Instructions

Details on the dataset can be found in the Report.

post_processing.py

The code applies for batch video files in a folder which is in the same directory as the script is located. To use the code for single video files, the for loop can be commented and used. Besure to change the fps, size and output folder and file name in VideoWriter accordingly. Note that when fps is changed the if statement in the while True loop has to be edited.

time_domain.py & freq_domain.py

The same applies to both these files as well. Be sure to change the fps, rows, cols and path to folder or file accordingly.

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.