GEAR stand for Gender, Emotion, Age, Race predictor. This is a deep learning project that predict the GEAR of a preson using the image of their face. First it detect all faces present in the image and then using deep learning model it predict the GEAR of the respective images and makes a directory with the annotated images as output.
This software can provide 2 functionalities
- Batch processing of images present in a folder with extraction of faces as well as marking the faces and predicting the GEAR properties from images.
- This software can be used to predict the GEAR properties from webcam using videos in real time.
Before running the project follow the following steps
-
Get all the required files and libraries from the following command
pip install -r requirements.txt -
System must have a Nvidia GPU with cuda installed and tensorflow with GPU enabled
To run the software follow the steps
- Enter the following command
python run.py - From the 3 buttons present named as :
- REALTIME PROCESSING
- BATCH PROCESSING OF LOW QUALITY IMAGES
- BATCH PROCESSING OF HIGH QUALITY IMAGES
- Select the type of processing you want from the software
- Place Low quality images in imagesLow directory.
- Place High quality images in images directory.
- After batch processing the images will be placed in updated images as well as faces extracted can be found in faces directory.
- To stop the realtime webcam please press escape key on keyboard.
To train the model on your own use the file AgeGenderRaceTraining.py file or to change the model architecture use the file AgeGenderRaceModel.py
-
KERAS - Deep learning framework used
-
OPENCV - Opencv for face detection
-
UTKFace dataset - UTK face dataset for age, gender, race detection
-
Fer2013 - For emotion detection
-
FACE DATASET - For testing age, ethnicity and emotion
- Mohammad Asif Hashmi - Udolf15
This project is licensed under the MIT License - see the LICENSE.md file for details

