This project implements face detection using OpenCV.js in the browser. It captures video from the webcam, processes frames in real-time, and detects faces using Haar Cascade Classifier.
- Loads OpenCV.js dynamically.
- Captures video from the user's webcam.
- Converts frames to grayscale for better face detection.
- Detects faces using the Haar Cascade Classifier.
- Draws rectangles around detected faces.
- JavaScript: For the main face detection logic.
- opencv.js: A JavaScript library for face detection.
- HTML5: For video capture and display.
-
Clone the repository:
git clone https://github.com/varreltantio/face-detection-opencv-js.git cd face-detection-opencv-js
-
Open the project in a browser:
Open the index.html file in your browser