This is a simple web application that detects faces in real-time using the face-api.js library. It streams video from the user's webcam and overlays a canvas with rectangles indicating the detected faces.
- Real-time face detection using the face-api.js library.
- Streams video from the user's webcam.
- Draws rectangles around detected faces on the video feed.
- Open the
index.html
file in a web browser. - Allow the browser to access your webcam when prompted.
- The web app will start detecting faces in the video feed in real-time.
index.html
: HTML file containing the structure of the web app.face-api.min.js
: Minified version of the face-api.js library for face detection.script.js
: JavaScript file containing the logic for accessing the webcam and performing face detection.style.css
: CSS file containing styling for the web app.
No special setup is required to run this web app. Simply open the index.html
file in a web browser that supports webcam access (e.g., Google Chrome, Mozilla Firefox).