/Face-detection-in-web-browsers-using-OpenCV.js

Detecting faces in web browsers using haarcascade and opencv.js

Primary LanguageJavaScript

Face and Eye Detection in web browser using OpenCV.js

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.

Libraries Used

  • OpenCv.js
  • Utils.js

Haarcascades Used

  • haarcascade_frontalface_default.xml
  • haarcascade_eye.xml

Demo

Click here!