Comments (4)
The bpm value is way too high. Is that suppose to be my heartrrate? When compared to other apps, it seems wrong.
from atheartrate.
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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atheartrate.