This project uses face-api.js for real-time face detection, landmarks, recognition, and expression analysis via webcam.
- A modern web browser
- A local server (e.g., VS Code Live Server, Node.js, or Python SimpleHTTPServer)
Clone the repository:
git clone https://github.com/tansexe/Face-Detection-JavaScript.git
cd face-detection-project
npm install
npm start
Open the project in your browser and allow access to your webcam.
- Loads face detection models from /models
- Captures webcam video stream
- Detects faces, landmarks, and expressions in real-time