Skip to content

🙍‍♂️This project combines OpenCV and deep learning models for real-time age and gender detection, providing a versatile tool for face analysis and demographic estimation.

License

Notifications You must be signed in to change notification settings

rajveersinghcse/Age-and-Gender-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Age and Gender Detection System

This project utilizes OpenCV and deep learning models to detect and classify the age and gender of faces in images or video streams. It provides a real-time demonstration of age and gender recognition capabilities using pre-trained models.

Requirements

  • Python 3.x
  • OpenCV
  • NumPy
  • argparse

Setup

  1. Clone the repository:
git clone https://github.com/rajveersinghcse/Age-and-Gender-Detection-System.git
  1. Install the required packages:
pip install -r requirements.txt
  1. The necessary model files (*.pb, *.prototxt, *.caffemodel) are already included in the constants/ directory. You don't need to download them separately.

Usage

  1. Run the script to start the age and gender detection:
python age_gender_detection.py --input path/to/input_file.ext --device cpu/gpu
  • --input: Path to an input image or video file. Skip this argument to capture frames from a camera.
  • --device: Specify the device for inference (cpu or gpu).
  1. The program will display the input stream with bounding boxes indicating detected faces along with their predicted age and gender.

Acknowledgments

This project is based on the OpenCV library and utilizes pre-trained deep learning models for face detection, age estimation, and gender classification.

License

This project is licensed under the MIT License.

Feel free to customize any part of this README.md file to better suit your project's details or style!

About

🙍‍♂️This project combines OpenCV and deep learning models for real-time age and gender detection, providing a versatile tool for face analysis and demographic estimation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages