This project demonstrates real-time age and gender detection using computer vision techniques. It utilizes pre-trained deep learning models to detect faces, estimate age, and classify gender from webcam input.
- Python 3.x
- OpenCV (cv2)
- Pre-trained models:
- Face detection model (deploy.prototxt.txt and res10_300x300_ssd_iter_140000.caffemodel)
- Gender classification model (gender_deploy.prototxt and gender_net.caffemodel)
- Age estimation model (age_deploy.prototxt and age_net.caffemodel)
-
Clone the repository:
git clone https://github.com/your-username/real-time-age-gender-detection.git
-
Download the pre-trained models and place them in the project directory.
-
Run the script:
python age_gender_detection.py
-
The webcam will open, and the real-time age and gender detection will start. Press 'q' to exit.
- The face detection model is based on the SSD framework.
- The gender classification and age estimation models are based on the Caffe framework.