4 Age and Gender Prediction Using Caffe Model and Opencv
4 Age and Gender Prediction Using Caffe Model and Opencv
ABSTRACT-Automatic classification of age and gender video, scanner, web and camera, whether a human face is
has become crucial for a rising number of applications, present or missing. Facial analysis in the recent past has
especially as social platforms and social media have risen. become well recognised in the computer-view
However, there is still substantial lack of performance of community[1–4]. The human face includes identity, age,
present approaches in real-world photos, especially when gender, emotions, and people's race characteristics [5, 6].
compared to the enormous performance jumps reported In my work, I haveused OpenCV and Haar Cascade
lately in the associated facial recognition job. In this research algorithm with pretrained Caffe Model for age and gender
we show that a considerable gain in performance may be detection.
achieved by the application of convolution neural networks
A. Open CV DNN
(CNN). This work is primarily designed to construct an
algorithm that accurately guesses a person's age and It is an OpenCV module. A pre-trained Tensorflow model
gender.Haar cascade is one of the most often utilised can be used. This is, however, a deep neural network that
approaches. In this research we provide a model that can help may be utilised with a pre-trained model to infer. Support for
Haar Cascade to determine a person's gender. The model several frames such as Cafe, Tensorflow, Darknet and
trained the classifier as positive and negative pictures using PyTorch is provided by OpenCV DNN. Various applications
diverse photos of men and women. Various face like face detection and object detection may be created using
characteristics are removed. With the help of Haar Cascade, this module.
the classifier determines if the picture input is men or B. Caffe Model
women. Even with insufficient data, it functions effectively.
Caffe is a profound learning context that takes into account
A deep education framework created with Caffe is used to do
expressiveness, speed and modularity. Berkeley AI Research
the age or sex approximation task. Our model is able to detect
(BAIR) is produced and supported by community
multiple faces in single image and predict age and gender of
contributors. During his PhD at UC Berkeley, Yangqing Jia
all faces present in the image.
designed the project. Under the BSD 2-Clause licence, Caffe
KEYWORDS- Haar Cascade, Caffe Model, OpenCV, is released.
Convolutional Neural Network. C. Caffe Data Storage
In 4-dimensional arrays called blobs coffee saves and
I. INTRODUCTION transmits data. Blobs give a single memory interface with
Usually interchangeable, the word "facial detection" and plenty of pictures, parameters or modifications to parameters
"facial recognition" has various significance. Face and face (or other information). By synchronising from the CPU host
detection are both complex computer vision tasks; yet, face to the GPU devices, the blobs cover the mental and
detection is normally the first step in several facial computational overhead of the mixed CPU/GPU process.
applications that identify the existence, location and size of Usually, data may be loaded from the disc to a CPU blob, the
human faces in digital images, whereas face detection CUDA kernel is called for GPU computing and the blob is
consists mainly of two phases.The process of recognising shut off to the next layer, disregarding the low level details
and locating the face is also viewed as a classifying task and retaining its high performance. Host memory and device
which should be properly classified by facial detection are assigned to efficient memory utilisation on request.
techniques (a small False Positive Rate) when an input is
presented as a digital picture of various sources that include
VIII. CONCLUSION
Figure 1: Samples of face images with correct age and We assess the design of the CNN for good performance in
gender classifications this project. Age estimates and gender estimates via the
convolutive Neural Network are the suggested approach of
this research. The pre-trained CNN model was utilised to
extract the features from the picture. Accuracy was 76
percent correspondingly in the results analysis for age and
gender predictions using the caffe model. The model was
designed in python language. Real time and static detection
of the face have been performed. In a single picture, the
system can recognise numerous faces
REFERENCES
[1]. Transactions on Pattern Analysis and Machine
Intelligence, p. 1, 2019. E. Agustsson, R. Timofte, S.
Escalera, X. Baro, I. Guyon, and R. Rothe, “Apparent
and real age estimation in still images with deep
residual regressors on appa-real database,” in
Proceedings of the 2017 12th IEEE International
Conference on Automatic Face & Gesture Recognition
(FG 2017), pp. 87–94, Biometrics Wild, Bwild,
Washington, DC, USA, June 2017.
[2]. K. Zhang, C. Gao, L. Guo et al., “Age group and