Detecting heart rate using the camera

后端 未结 3 2075
滥情空心
滥情空心 2020-12-02 05:19

I need the same functionality as the application Instant Heart Rate.

The basic process requires the user to:

  1. Place the tip of the index f
3条回答
  •  一个人的身影
    2020-12-02 05:46

    In fact can be simple, you have to analyze the pixel values of the captured image. One simple algorithm would be: select and area in the center of the image, convert to gray scale, get the median value of the pixel for each image and you will end up with a 2D function and on this function calculate the distance between to minimums or maximum and problem solved.

    If you have a look at the histogram of the acquired images over a period of 5 seconds, you will notice the changes of the gray level distribution. If you want a more robust calculation analyze the histogram.

提交回复
热议问题