This project provides a real-time face and eye detection application using OpenCV. It includes an optional feature to overlay sunglasses on detected faces, adding a fun twist to the traditional face detection.
- Real-time face detection using Haar cascades.
- Eye detection within detected faces.
- Optional sunglasses overlay on detected faces.
- Trackbar to enable or disable the sunglasses overlay.
Ensure you have the following installed:
- Python 3.12
- OpenCV
- NumPy
face_eye_detection.py
: The main script containing theFaceDetector
class and themain
function to run the application.dealwithit.png
: The sunglasses image used for the overlay.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the OpenCV community for providing the Haar cascades for face and eye detection.