Git Product home page Git Product logo

Comments (4)

ZhanLiangUF avatar ZhanLiangUF commented on July 28, 2024

The bpm value is way too high. Is that suppose to be my heartrrate? When compared to other apps, it seems wrong.

from atheartrate.

lehn0058 avatar lehn0058 commented on July 28, 2024

Heart rate needs to be averaged over a period of time. You are not able to get reliable results until the signal has stabilized. This is common in signal processing. You will want to make sure you take readings until the heart rate stabilizes. In the code, I am taking it for 30 seconds but you could just wait until it stabilizes after 10 seconds or so. Note that this depends on the user keeping their finger directly over the camera, without pressing too hard (as this constricts blood flow and can cause different results) or moving too much (as this introduces additional noise in the signal).

How high is "way too high"? Heart rate comparison is a little tricky because it is so variable. Unless your recordings are happening at the same time, it is not a fair comparison.

from atheartrate.

ZhanLiangUF avatar ZhanLiangUF commented on July 28, 2024

so in this line of code: NSLog(@"Value is %i", bpm);

bpm at 10 seconds is 70
bpm at 30 seconds is 100

My resting bpm is 68-70

Am I even using the right variable/function to get the bpm?

from atheartrate.

manojsinghalht avatar manojsinghalht commented on July 28, 2024

@lehn0058 I am taking heartbeat for 30 seconds, I am getting value in following method
- (void)heartRateUpdate:(int)bpm atTime:(int)seconds;
When this 30 seconds is completed - (void)heartRateEnd , how to show the final value ? Is it last value from following method
- (void)heartRateUpdate:(int)bpm atTime:(int)seconds; OR
average of all values returned in following method
- (void)heartRateUpdate:(int)bpm atTime:(int)seconds;

from atheartrate.

Related Issues (6)

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.