Simple approach to detect faces and eyes from a video directly in a web browser.
WebRTC navigator.mediaDevices.getUserMedia
to get the media stream.
And the output feed with detected faces is shown in a HTML5 canvas.
- OpenCv.js
- Utils.js
- haarcascade_frontalface_default.xml
- haarcascade_eye.xml