This Python project performs real-time face, eye, and gender detection using OpenCV and pre-trained deep learning models. It utilizes Haar Cascade classifiers for face and eye detection, and a pre-trained Caffe model for gender classification. Face and eye could be seen as rectangle blue and green. While Gender can be seen written above
- Real-time face detection
- Eye detection within detected faces
- Gender prediction (Male / Female)
- Uses webcam input
- Easy to run and modify
-
Python
-
OpenCV
-
Pre-trained models:
haarcascade_frontalface_default.xmlhaarcascade_eye.xmlgender_deploy.prototxtgender_net.caffemodel
--> app.py --> gender --> haarcascade_frontalface_default.xml --> haarcascade_eye.xml --> gender_deploy.prototxt --> gender_net.caffemodel --> Readme.md --> requirements.txt
- Clone the Repository
git clone https://github.com/your-username/face-eye-gender-detection.git cd face-eye-gender-detection
- Install Dependecies
pip install -r requirements.txt
- Run the project python app.py