Project Name:
GENDER AND AGE ESTIMATION USING PYTHON
Surya Sen (12017002002014)
NAME : Shashwata Banerjee (12017002002034)
Arijit Sarkar (12017002002012)
Year : 4th Year
Dept. : Electronics and Communication Engineering
Subject : Final Year Project
Project Guide Name : Prof. Riya Sen
Content
1.Face Detection
2.Cascade.Object.Detecter
3.PYTHON 3
4. Uses of Gender Detection
5. Uses of Age Prediction
6.Vision Toolbox (open-cv)
7.Python Functions
8. Flow Chart
9.Result
9.Conclusion
10.Future Plan
11.References
Face Detection
o Face detection is an AI-based computer technology
that can identify and locate the presence of human
faces in digital photos and videos.
How does Face Detection work ?
o determine whether images are positive images or
negative images.
o If a face is present in an image, a bounding box around
the face(s).
Cascade.Object.Detecter
o The vision.CascadeObjectDetector System object comes with several pretrained
classifiers for detecting frontal faces, profile faces, noses, eyes and the upper
body.
o not always sufficient for a particular application. Computer Vision Toolbox
provides the facility to train a custom classifier on our image database.
PYTHON 3
Python is a general-purpose interpreted, interactive, object-oriented, and high-level
programming language.
It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source
code is also available under the GNU General Public License (GPL). Python is
named after a TV Show called ëMonty Pythonís Flying Circusí and not after
Python-the snake.
Why Python 3
• Python is Interpreted.
• Python is Interactive.
• Python is Object-Oriented.
• GUI Programming.
• Easy-to-maintain.
• Easy to handle toolbox(s).
Uses of Gender classifications
Human Computer Interaction
Surveillance Systems
Commercial Development
Research
Mobile applications and Security
Uses of Age Prediction:
Age simulation
Security and surveillance
ECRM
Biometrics
Content access
Missing persons
Opencv-python
OpenCV is short for Open Source Computer Vision. Intuitively by the name, it is an
open-source Computer Vision and Machine Learning library.
OpenCV is a Python library that is used to solve computer vision problems.
Python Functions
Functions Features
1. cv2 Complete package of vision
toolbox.
2.getFaceBox Parameters for taking details of
face.
3. argparse.ArgumentParser script to run age and gender
recognition using OpenCV.
4. cv.dnn.readNet function for loading the network
into memory.
5. cv.VideoCapture Capturing framed from the input.
(webcam/CCTV/Camera)
6. cv.dnn.blobFromImage Creates 4-dimensional blob from
image.
7. ageNet.setInput(blob) The Blob constructor can be used
to create blobs from anything.
8. cv.putText method is used to draw a text
string on any image.
9. bboxes Objects detected are returned as
a set of bounding boxes.
Flow Chart:
Results :
Fig 2 : male
Fig 3 : female
CONCLUSION
CNN can be used to provide improved age and gender classification results,
even considering the much smaller size of contemporary unconstrained image
sets labeled for age and gender.
The simplicity of the model implies that more elaborate systems using more
training data may well be capable of substantially improving results beyond
these results.
One can also try to use a regression model instead of classification for Age
Prediction if enough data is available.
REFERRENCES
Yann LeCun, Yoshua Bengio & Geoffrey Hinton, “Deep Learning”, 2015, Nature
Volume 521 p. 436–444. doi: 10.1038/nature14539
Haoxiang Li, Zhe Lin, Xiaohui Shen, Jonathan Brandt & Gang Hua, “A Convolutional
Neural Network Cascade for Face Detection”, 2015, In Proceedings of the IEEE
Conference on Computer Vision and Pattern Recognition p. 5325-5334. doi:
10.1109/CVPR.2015.7299170
Gil Levi & Tal Hassner, “Age and Gender Classification using Convolutional Neural
Networks”, 2015, In Proceedings of the IEEE Conference on Computer Vision and
Pattern Recognition p.34-42. doi: 10.1109/CVPRW.2015.7301352
Rajeev Ranjan, Swami Sankaranarayanan, Carlos D. Castillo & Rama Chellappa,
“An All-InOne Convolutional Neural Network for Face Analysis”, 2017, In
Proceedings of the IEEE International Conference on Automatic Face & Gesture
Recognition. doi: 10.1109/FG.2017.137