Professional Documents
Culture Documents
Age and Gender With Mask Report
Age and Gender With Mask Report
OpenCV and
CONVOLUTIONAL NEURAL NETWORK
PROJECT REPORT
1 INTRODUCTION 1
2 METHODOLOGY
2.1 Objective of Age And Gender Detection 2
2.2 About Dataset 2
2.3 Computer vision 3
2.4 OpenCV 4
2.5 Convolutional Neural Network 5
2.6 Layers in CNN 6
2.7 Modules 7-8
3 RESULTS 9-10
4 CONCLUSION 11
CHAPTER-1
INTRODUCTION
which is also called as object detection. OpenCV is widely used for object
detection. The goal of face emotion analysis is to detect and identify the
surprise, etc. A gender categorizing model uses face from a given image to
predict the gender (male or female) based on their appearance like baldness,
wrinkles, hair colour and also size of face etc. Deep learning which is a subset
of machine learning that uses several layers neural network to repeatedly gain
higher level of features from the given input images. The concept of deep
learning was inspired by how neurons function in our brain hence it’s also
capable to identify hidden relationships in a set of data and the process is similar
convolutional neural network which takes input images and allocate importance
1|Page
CHAPTER-2
METHODOLOGY
2. ABOUT DATASET:
We'll utilise the Adience dataset for this Python project; the dataset is available
in the public domain . This dataset serves as a standard for face photographs and
includes noise, lighting, posture, and look, among other real-world imaging
situations. The photos were taken from Flickr albums and are licenced under a
Creative Commons (CC) licence. It's around 1GB in size and contains a total of
26,580 pictures of 2,284 people in eight age groupings (as indicated above).
This dataset was used to train the models .
In this the age is grouped into 8 groups i.e.,(0 – 2), (4 – 6), (8 – 12), (15 – 20),
(25 – 32), (38 – 43), (48 – 53), (60 – 100).
2|Page
3.COMPUTER VISION:
Computer vision is the study of how computers can perceive and recognise
digital pictures and videos in the same way that humans do. The difficulties it
confronts are largely due to a lack of understanding of biological vision.
Computer vision is the process of gathering, processing, analysing, and
comprehending digital images in order to extract high-dimensional data from
the real world and provide symbolic or numeric output.
3|Page
4.OpenCV:
The acronym OpenCV stands for "Open Source Computer Vision." It's an open-
source Computer Vision and Machine Learning library, as the name suggests.
This library can handle real-time image and video processing while also
providing analytical capabilities. It works with the TensorFlow, Caffe, and
PyTorch which are deep learning frameworks.
APPLICATIONS OF OPENCV:
4|Page
5.CONVOLUTIONAL NEURAL NETWORK:
• A convolutional neural network is a feed-forward neural network that is
generally used to analyze visual images by processing data with grid-like
topology. It’s also known as a ConvNet. A convolutional neural network
is used to detect and classify objects in an image.
ARCHITECTURE OF CNN:
5|Page
6. LAYERS IN CNN:
A convolution neural network has multiple hidden layers that help in extracting
information from an image.
6|Page
7 .MODULES
In this we use three modules. They are:
MODULES DESCRIPTION:
This is almost similar to the gender detection part except that the
corresponding prototxt file and the caffe model file are
deploy_agenet.prototxt” and “age_net.caffemodel”. Furthermore, the CNN’s
output layer (probability layer) in this CNN consists of 8 values for 8 age
classes (“0–2”, “4–6”, “8–13”, “15–20”, “25–32”, “38–43”, “48–53” and
“60-”)
1 .prototxt — The definition of CNN goes in here. This file defines the
layers in the neural network, each layer’s inputs, outputs and functionality.
8|Page
CHAPTER-3
RESULTS
OUTPUT
9|Page
Project Example2:
OUTPUT:
10 | P a g e
CONCLUSION
Artificial Intelligence systems have grown rapidly over the last years.
This enabled us to create, using multiple models and frameworks, a
system capable of detecting faces and classifying them by age and
gender. The main objective of this research work was to create an
efficient system that was able to detect faces in images and to classify
such faces into age and gender, and to evaluate wrong outputs in order to
find an underlying reason for such failures. In order to fulfill such
objective, various frameworks capable of detecting faces in images and
11 | P a g e
capable of classifying those into age and gender classes were tested and
validated in order to understand which would fit better into our problem.
12 | P a g e