There are several apps on AppStore
, like Stress Check
by Azumio, which calculate heart rate variability using an iphone camera (by placing your finger on the camera lens), and a few others offering only measurement of bpm the same way. I'm looking for an algorithm to implement this functionality in my iOS App, or better for some sample code (not necessarily Objective-C code).
Asked
Active
Viewed 1,940 times
2

Yury Pogrebnyak
- 4,093
- 9
- 45
- 78
-
Have you found a solution? – iOS Dev Jul 11 '14 at 08:13
1 Answers
2
- Grab image frame from camera
- Compare image metrics of frame to previous frame. You need to figure out what metrics to use: brightness, color, etc.
- If metrics are significantly different in one direction, then you have a heartbeat.
- Pause some indeterminate amount of time.
- Go to 1

Peter Cetinski
- 2,328
- 14
- 8