Real-time face detection using OpenCV, Node.js, and WebSockets
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
drejkim Update README w/ latest OpenCV version
The README reflects that the project has been tested with OpenCV 3.4.0. It also notes that older versions of OpenCV may work.
Latest commit 6f37dfa Dec 27, 2017


Real-time face detection using OpenCV, Node.js, and WebSockets.

Click here to see it in action.


  • Node.js
  • OpenCV 3.4.0
    • May also work with older versions of OpenCV, but most recently tested with OpenCV 3.4.0
  • A webcam, e.g. laptop-integrated webcam, USB webcam

Installing Node.js packages

  • Navigate to the server directory
  • To install the packages: npm install

Running the demo

  • Make sure you are still in the server directory
  • To run the server: node server.js
  • To run the demo locally, open a browser and go to localhost:8080

The app should be up and running!