Age & Gender Estimation With Face Recognition Using Matlab
Age & Gender Estimation With Face Recognition Using Matlab
FACE RECOGNITION
USING
MACHINE LEARNING
• Face recognition the process of identifying or veryfying the identify of a personu using
their face .This system is very essential for providing security , law enforcement , user
acces control ,visual surveillance etc .
• The main goal of this project is to caputure a face , train the face for recognition , detect
the age and gender with Matlab
The various types of challenges coming in the picture during face detection are
described :
Pose , Facial Expression ,Illumination .
We use violla jones algorithm , a simple model, less susceptible to over-fitting. The
shortage of data available for the study of age estimation, and the high dimensionality of
standard face representations .
• The real time datasets for age & gender used will be detection as it
demonstrated better results with 99.4% accuracy .
• It can restrict users for a particular sites by recognising their face with age &
gender.
Prerequisites are:
1. Matlab version
2. GUI
Initialize protocol
buffer & model Load networks Face database
Principle
componet
analysis
Face Extraction
EXPECTED
Final Output OUTPUT
• Problem of different size face image recognition, finding the format supported
by the camera and its device ID using various command.
net.setInput(blob)
detections = net.forward()
bboxes = []
for i in range(detections.shape[2]):
confidence = detections[0, 0, i, 2]
if confidence > conf_threshold:
x1 = int(detections[0, 0, i, 3] * frameWidth)
y1 = int(detections[0, 0, i, 4] * frameHeight)
x2 = int(detections[0, 0, i, 5] * frameWidth)
y2 = int(detections[0, 0, i, 6] * frameHeight)
bboxes.append([x1, y1, x2, y2])
cv.rectangle(frameOpencvDnn, (x1, y1), (x2, y2), (0, 255, 0), int(round(frameHeight/150)), 8)
return frameOpencvDnn, bboxes
• The main aim of this project is to detect age and gender through the given data
set. We will use matlab and GUI allows the userto perform tasks interactively.
• The first step completed is , the face is being detected usibg our webcam . And
the estimation of gender whether its male or famele is sucvesfully identified .
Female
Male
• The system should be able to classify a face into a set of age and gender classes;
Initialize the mean values for the model and the lists of age ranges and genders to
classify from.
• we will store in the names resultImg and faceBoxes. And if we got 0 faceBoxes, it
means there was no face to detect. Here, net is faceNet- this model is the DNN Face
Detector.
• We’ll add the gender and age texts to the resulting image and display it with
imshow().