Coder Social home page Coder Social logo

android-heart-rate-monitor's Introduction

android-heart-rate-monitor

Android heart rate monitor

Introduction

Android based heart rate monitor which uses the camera and its flash to determine the users heart rate in beats per minute.

Details

The App uses the PreviewCallback mechanism to grab the latest image from the preview frame. It then processes the YUV420SP data and pulls out all the red pixel values.

It uses data smoothing in a Integer array to figure out the average red pixel value in the image. Once it figures out the average it determines a heart beat when the average red pixel value in the latest image is greater than the smoothed average.

The App will collect data in ten second chunks and add the beets per minute to another Integer array which is used to smooth the beats per minute data.

How To

All you have to do is open the HeartRateMonitor App and then hold the tip of your index finger over the camera lens of your phone. The entire camera preview image should be red with a lighter area where the tip of your finger is touching. Do not press too hard or you will cut off circulation which will result in an inaccurate reading.

After a second or two, you should see the Android icon on the top of the screen start to flash red when it senses a heart beat. After ten seconds it will compute your heart rate and update the number next to the Android icon. It'll take between ten and thirty seconds to get an accurate heart rate.

android-heart-rate-monitor's People

Contributors

phishman3579 avatar

android-heart-rate-monitor's Issues

Hide Surfaceview

Hi to everybody,
is possible hide the surfaceview and get only the heartrate?
Thanks :)


Original issue reported on code.google.com by [email protected] on 6 Dec 2013 at 8:50

Not accurate

It's not accurate. I get around 10 bpm more than the real heart rate.

Original issue reported on code.google.com by [email protected] on 7 Jan 2013 at 1:51

Question

why did you choose the last 4 images ? if i make it six for example what would 
be the influence on changing number of images?

Original issue reported on code.google.com by [email protected] on 29 Jun 2012 at 3:47

  • Merged into: #1

Question

could you please tell me what is the algorithm you have used for smoothing the 
red pixels signal ? 


Original issue reported on code.google.com by [email protected] on 5 May 2012 at 10:47

Optimization



Thank you for sharing the code can you guide me how to optimize the code to 
extract the value before 10s and how to get more accurate bpm like other apps 
thanks again

Original issue reported on code.google.com by [email protected] on 19 Jan 2014 at 10:40

Please Describe the alogorithm

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 17 Jul 2014 at 7:29

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.