https://github.com/zalo/lifelens
A Webcam-based Heartrate Monitoring Demo
https://github.com/zalo/lifelens
face-detection heart-rate webcam
Last synced: 14 days ago
JSON representation
A Webcam-based Heartrate Monitoring Demo
- Host: GitHub
- URL: https://github.com/zalo/lifelens
- Owner: zalo
- License: mit
- Created: 2021-05-29T04:14:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-09T19:19:01.000Z (almost 4 years ago)
- Last Synced: 2025-03-25T21:11:13.607Z (about 1 month ago)
- Topics: face-detection, heart-rate, webcam
- Language: JavaScript
- Homepage: https://zalo.github.io/LifeLens/
- Size: 2.65 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [LifeLens](https://zalo.github.io/LifeLens/)
A quick and _extremely_ dirty test for reading facial bloodflow via webcam (eventually for detecting heartrate).
[](https://zalo.github.io/LifeLens/)
## Basic Algorithm
- Get a Bounding Box of the Face
- Average up the R and G components of all the pixels in the box
- Divide the Red Channel by the Green Channel
- Crop to a fixed range and add filtering## Limitations
- Needs strong ambient illumination
- Results may be skin color dependent## Credits
- [three.js](https://github.com/mrdoob/three.js/) (3D Rendering Engine)
- [Mediapipe Facemesh](https://github.com/tensorflow/tfjs-models/tree/master/face-landmarks-detection) (Face Tracking)