The feature is exclusive to Pixel phones that use the new app released by Google- Google Fit App. It uses a technology called optical flow detection to monitor and render exact details of the respiratory, the process is carried out using the camera and computer vision.
Google has earlier announced that the new feature along with the app will be available for its own smartphone series – Pixel next month.
The heart rate is measured from the slight variation of color in the fingertips, which happens due to the flow of fresh oxygenated blood.
“Google Fit will allow you to measure your heart rate and respiratory rate using just your phone’s camera. These features will be available in the Google Fit app for Pixel phones, with plans to expand to more Android devices. To measure your respiratory rate, you just need to place your head and upper torso in view of your phone’s front-facing camera and breathe normally. To measure your heart rate, simply place your finger on the rear-facing camera lens,”Shwetak Patel, director of Health Technologies, Google Health
Although the company strictly states that the results given out are not to be used for medical purposes, rather they believe that the reading can give the user a basic understanding of his wellbeing.