# Video Heart Rate

To estimate the heart rate from video we are using an open-source algorithm that masks the face from the video using ML models and uses image-processing methods to track subtle changes in color and try to infer a person's heart rate. This method is often known as rPPG (remote photopletismography).

{% hint style="info" %}
Video heart rate can be greatly influenced by camera quality and lighting conditions. It's best to avoid over or under-exposing the frame.
{% endhint %}

### Output

* Heart Rate: a single number representing the estimated heart rate.

## Attribution

{% embed url="<https://github.com/prouast/heartbeat-js/tree/master?tab=readme-ov-file>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.youquantified.com/devices/video-heart-rate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
