Giter Site home page Giter Site logo

image_processing's Introduction

Applied Force Task - Heart Rate Reading

Last updated on February 10, 2020

Function: reads heart rates through two devices for three ROIs whenever the subject applies force onto the plate. This is modified from the previous version to take in multiple ROIs from a single video. HR sensor bar readings taken at initial and final times are not to be used as inputs at this point; once enough videos are made available to verify its use, they can be used to determine which HR device is more reliable.

Dependencies

MATLAB Computer Vision Toolbox for OCR, GUIDE tools

Usage

Run build1.m in MATLAB.

  1. [optional] Set the initial starting time (absolute) at which the experiment started (to indicate in the output), and adjust maximum rep count (for memory storage purposes)
  2. Set the path for output files in CSV format, Load a video to stream
  3. Select first motion ROI and two HR device ROIs
  4. When the location (Floor/Wall/Ceiling) changes, check off ROI 2 or ROI 3 above the video to indicate a different ROI
  5. Wait for frames to run, and verify as necessary. The box will turn red (no motion), green (in motion), blue (video finished).

Output

  • '{video_name}ROI-[1/2/3].csv' containing ITERATIONS / TIME_START / TIME_END / DURATION / HR_MIN1 (Device 1) / HR_MAX1 (Device 1) / HR_AVG1 (Device 1) / HR_MIN2 (Device 2) / HR_MAX2 (Device 2) / HR_AVG2 (Device 2), for each ROI in a CSV formatted document. At the last row, the macro-average values are appended for each ROI, and the filtered HR readings are printed in the command window, as well as saved as .mat files for manual verification purposes

Constraints/Limitations

  • The heart rate measurement readings are filtered so they fall in the range of (50, 200) to account for incorrect readings (can be adjusted).
  • The video skips 3 frames at each time of reading for expedited runthrough (can be adjusted).
  • Depending on the size of ROI, more precise tuning for the threshold (for motion changes) may be necessary.

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.