SlideShare a Scribd company logo
International Journal of Electrical, Electronics and Computers
Vol-6, Issue-3 | May-Jun, 2021
Available: https://aipublications.com/ijeec/
Peer-Reviewed Journal
ISSN: 2456-2319
https://dx.doi.org/10.22161/eec.63.6 43
Gender Classification using SVM With Flask
Akhil Maheshwari, Dolly Sharma, Ritik Agarwal, Shivam Singh, Loveleen Kumar
Department of CSE, Global Institute of Technology, Jaipur, India
Received: 01 Jun 2021; Accepted: 16 Jun 2021; Date of Publication: 23 Jun 2021
©2021 The Author(s). Published by Infogain Publication. This is an open access article under the CC BY license
(https://creativecommons.org/licenses/by/4.0/).
Abstract— The main objective of this work is the uniting and streamlining of an automatic face
detection application and recognition system for video indexing applications. Human identification
means the classification of gender which can increase the identification accuracy. So, accurate gender
classification algorithms may increase the accuracy of the applications and can reduce its complexity.
But, in some applications, some challenges are there such as rotation, gray scale variations that may
reduce the accuracy of the application. The main goal of building this module is to understand the
values in image, pattern, and array processing with OpenCV for effective processing faces for building
pipe-lining, SVM models.
Keywords— Gender classification, Human Recognition, Facial Images, OpenCv, Image Processing.
I. INTRODUCTION
Human's face identification is a major hallmark in
discernible machine learning and image processing
systems to identify desired target. A human face tote
discriminative and separable information consisting
gender, age, ethnicity, etc. Face information is applicable
in many cases such as human-computer interaction, image
retrieval, biometric authentication, drivers monitoring,
human-robot interaction, sport competition senses
analysis, video summarizing, and image/video indexing.
Basically we are building a image processing application
which is face recognition and it also try to detect the facial
features and classify the gender i.e male or female. The
process is starting by gathering the data. As the data is
gathered we are going to arrange the highly unstructured
data in a structured form after that we are learning image
techniques using OpenCV and get mathematical concept
behind the image. For image analysis we require
techniques for preprocessing our data, extract feature from
image like computing eigen images using PCA(Principal
Component Analysis) and Single Value Decomposition.
With the eigen images we can learn to test our Machine
Learning model, and the model before deploying it. After
Machine Learning model is ready we are going to learn to
develop web server gateway in flask by using HTML, CSS
and BOOTSTRAP in front-end part and PYTHON for
back-end part. The below image shows the steps for
building the application.
II. METHODOLOGY
In this Web App we will be working on input image of
human beings. The uploaded image must be clean and
clear to extract the human facial features from image taken
as Input for the processing. We tested the project only on
the human faces. The following methods is used in this
technology:-
1. Image Uploading
2. RGB/BGR to gray scale
3. Image Data Preprocessing and Analysis
4. Predictive Model
5. Displaying result
III. IMAGE UPLOADING
This is initial phase of the project. We will be uploading
the image to the project.
It is a normal image of human being. The image type must
be JPEG or PNG. We have used HTML form to upload the
image.
Akhil Maheshwari at al. Gender Classification using SVM With Flask
ISSN: 2456-2319
https://dx.doi.org/10.22161/eec.63.6 44
Fig. 1: Uploaded Image
IV. RGB/BGR to GREY SCALE
The image is passed to pipeline model which is integrated
with flask. Understanding Data is must within the project
life cycle. We have to understand the data starting from
domain knowledge.
We will work on the image taken as input. It can be in
RGB or BGR format. The digital images are used to
represented in multi-dimension arrays. We will be
converting that image into gray scale using cv2 library.
Gray scale image is two dimension array. The function
used to convert image into gray scale is given below:-
if color == 'bgr':
gray = cv2.cvtColor(imageFile,
cv2.COLOR_BGR2GRAY)
else:
gray = cv2.cvtColor(imageFile,
cv2.COLOR_RGB2GRAY)
Fig. 2: Image Conversion
V. ImAGE DATA ANLYSIS &PREPROCESSING
In this phase we will be working on the gray scale image
which is extracted from the input image which is obtained
from above methods. There are four kinds of analysis that
need to perform on the extracted image for better decision
making and they are listed below:
Defining Transformation: In this step we will be finding
the shape of the image. We will be finding the optimal size
from the histogram and box-plot.
Hazed Removal (Noise Remove): In this step we will be
removing noise from the image by adjusting light
intensity, estimating transmission map and clarifying
image.
Image Segmentation: In this step we will be partitioning
the image into multiple segments (sets of pixels, also
known as image objects). The goal of segmentation is to
simplify and/or change the representation of an image into
something that is more meaningful and easier to analyze.
Image segmentation is typically used to locate objects and
boundaries (lines, curves, etc.) in images. More precisely,
image segmentation is the process of assigning a label to
every pixel in an image such that pixels with the same
label share certain characteristics.
Object Detection: Face detection is a computer technology
being used in a variety of applications that identifies
human faces in digital images.
Python library OpenCV will be used for face recognition.
We will be detecting the face from the gray scale image
using cv2 library. We will be performing further more
methods on that face detected using the given function:-
faces = haarcascade.detectMultiScale(gray,1.5,3)
Fig. 3: Cropped Image
VI. FEATURE EXTRACTION
We cannot directly detect faces that were cleaned and
extracted faces using object detection techniques with
Machine Learning models. We will need to extract the
features from the face. The Feature extraction
techniques we used are an eigen images approach.
Eigen face
Fig. 4: Eigen Image
Akhil Maheshwari at al. Gender Classification using SVM With Flask
ISSN: 2456-2319
https://dx.doi.org/10.22161/eec.63.6 45
An eigen face is the name given to a set of eigen vectors
when used in the computer vision problem of human face
recognition. We will be deriving the eigen vectors from the
covariance matrix of the probability distribution over the
high-dimensional vector space of face images. This
produces dimension reduction by allowing the smaller set
of basis images to represent the original training images.
Classification can be achieved by comparing how faces are
represented by the basis set.
VII. PREDICTIVE MODEL
We have trained a machine learning model with the eigen
image data. There are many machine learning models are
there but for the image we will be using SVM.
In this phase we will be detecting gender of each face
using trained SVM model. Now there each Face is
recognized individually in this phase.
Fig. 5: Feeding Images
VIII. DISPLAYING MODEL
This is the final phase of the project. We have performed
all the method. We will be displaying Gender of the Image
and the predicted score.
Fig. 6: Producing Output
Fig. 7: Interface for Upload
Fig. 8: Data Flow
IX. CONCLUSION
In this Gender classification project we made software
which detects Gender using SVM model. It will be finding
the face of the human and predicting the gender. Though
we have tried to make efficient software but there are some
conditions for this software to work:-
• Image of the human faces should be clean and clear.
• Image quality should be high.
X. FUTURE WORK
On the future direction, results that are Good for
Akhil Maheshwari at al. Gender Classification using SVM With Flask
ISSN: 2456-2319
https://dx.doi.org/10.22161/eec.63.6 46
gender recognition as well as years opinion can
continue to be received utilizing transfer learning
strategies with expansion in reliability. Combos of
fusions as well as datasets of attributes might be what is on
the horizon for the development.
ACKNOWLEDGEMENTS
An acknowledgement section may be presented after the
conclusion, if desired.
REFERENCES
[1] [online] Available: https://www.engpaper.com/face-
recognition-2018.htm.J. Clerk Maxwell, A Treatise on
Electricity and Magnetism, 3rd ed., vol. 2. Oxford:
Clarendon, 1892, pp.68–73.
[2] Samuel Manoharan, "Image Detection Classification and
Recognition for Leak Detection in Automobiles", Journal of
Innovative Image Processing (JIIP), vol. 1, no. 02, pp. 61-
70, 2019.K. Elissa, “Title of paper if known,” unpublished.
[3] [online] Available:
https://www.semanticscholar.org/paper/Face-Detection-
using-Digital-Image-Processing-Jindal-
Gupta/a0a9390e14beb38c504473c3adc857f8faeaebd2
[4] Md. Khalid Rahmani, M.A. Ansari and Amit Goel, "An
efficient indexing algorithm for CBIR", Proceedings - 2015
IEEE International Conference on Computational
Intelligence and Communication Technology CICT 2015,
pp. 73-77, 2015.
[5] Cao Qiong, Shen Li, Xie Weidi, Omkar M Parkhi and
Andrew Zisserman, "VGGFace 2: A dataset for recognising
faces across pose and age", IEEE Conference on Automatic
Face and Gesture Recognition, 2018.
[6] Junjue Wang, Brandon Amos, Anupam Das, Padmanabhan
Pillai, Norman Sadeh and Mahadev Satyanarayanan,
"Enabling Live Video Analytics with a Scalable and
Privacy-Aware Framework", ACM Transactions on
Multimedia Computing Communications and Applications
(TOMM), vol. 14, no. 3s, pp. 64, 2018.
[7] Arsha Nagrani, Samuel Albanie and Andrew
Zisserman, Seeing Voices and Hearing Faces: Cross-modal
biometric matching, 2018, [online] Available:

More Related Content

PPTX
MINI PROJECT 2023 deepfake detection.pptx
PDF
IRJET- Automated Detection of Gender from Face Images
PPTX
Transfer Learning and Fine Tuning for Cross Domain Image Classification with ...
PPTX
Automatic number-plate-recognition
PPTX
Object detection
PPTX
Automatic Number Plate Recognition(ANPR) System Project
PPTX
Facial Image Analysis for age and gender and
PPTX
Facial expression recognition based on image feature
MINI PROJECT 2023 deepfake detection.pptx
IRJET- Automated Detection of Gender from Face Images
Transfer Learning and Fine Tuning for Cross Domain Image Classification with ...
Automatic number-plate-recognition
Object detection
Automatic Number Plate Recognition(ANPR) System Project
Facial Image Analysis for age and gender and
Facial expression recognition based on image feature

What's hot (20)

PPTX
License Plate Recognition System
PPT
Face detection ppt
PPTX
Driver drowsiness monitoring system using visual behavior and Machine Learning.
PPTX
Automatic number plate recognition (anpr)
PDF
Human Face Detection and Tracking for Age Rank, Weight and Gender Estimation ...
PPTX
Covid 19 diagnosis using x-ray images and deep learning
PPTX
Detection and recognition of face using neural network
PPTX
Finger tracking
PPTX
Transfer Learning and Fine-tuning Deep Neural Networks
PDF
Report face recognition : ArganRecogn
PDF
Algorithms notes 2 tutorials duniya
PDF
IRJET- Detection and Classification of Skin Diseases using Different Colo...
PDF
Face recognition a survey
PPTX
Face Recognition using OpenCV
PPTX
Attendance system based on face recognition using python by Raihan Sikdar
PPTX
Face recognization using artificial nerual network
DOCX
Internship report on AI , ML & IIOT and project responses full docs
PPTX
Deep learning for object detection
PPTX
License plate recognition
PPTX
Face detection and recognition using surveillance camera2 edited
License Plate Recognition System
Face detection ppt
Driver drowsiness monitoring system using visual behavior and Machine Learning.
Automatic number plate recognition (anpr)
Human Face Detection and Tracking for Age Rank, Weight and Gender Estimation ...
Covid 19 diagnosis using x-ray images and deep learning
Detection and recognition of face using neural network
Finger tracking
Transfer Learning and Fine-tuning Deep Neural Networks
Report face recognition : ArganRecogn
Algorithms notes 2 tutorials duniya
IRJET- Detection and Classification of Skin Diseases using Different Colo...
Face recognition a survey
Face Recognition using OpenCV
Attendance system based on face recognition using python by Raihan Sikdar
Face recognization using artificial nerual network
Internship report on AI , ML & IIOT and project responses full docs
Deep learning for object detection
License plate recognition
Face detection and recognition using surveillance camera2 edited
Ad

Similar to Gender Classification using SVM With Flask (20)

PDF
Identifying Gender from Facial Parts Using Support Vector Machine Classifier
PDF
An Assimilated Face Recognition System with effective Gender Recognition Rate
PDF
Age and Gender Classification using Convolutional Neural Network
PPTX
Human age and gender Detection
PDF
An Image Mining System for Gender Classification & Age Prediction Based on Fa...
PDF
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
PDF
IRJET- Vehicle Seat Vacancy Identification using Image Processing Technique
PDF
Human Face Detection And Identification Of Facial Expressions Using MATLAB
PDF
Face Recognition Based on Image Processing in an Advanced Robotic System
PDF
Report
PDF
Ei25822827
PDF
Image Processing In Open CV. Image Processing In Open CV. Image Processing In...
DOCX
ADAPTIVE PART-LEVEL MODEL KNOWLEDGE TRANSFER FOR GENDER CLASSIFICATION
PPTX
Extracting individual information using facial recognition in a smart mirror....
PDF
IRJET- Emotionalizer : Face Emotion Detection System
PDF
IRJET - Emotionalizer : Face Emotion Detection System
PDF
IRJET- Persons Identification Tool for Visually Impaired - Digital Eye
PPT
Machine learning Image classification for identification
PDF
76 s201920
PDF
Age and Gender Detection-converted.pdf
Identifying Gender from Facial Parts Using Support Vector Machine Classifier
An Assimilated Face Recognition System with effective Gender Recognition Rate
Age and Gender Classification using Convolutional Neural Network
Human age and gender Detection
An Image Mining System for Gender Classification & Age Prediction Based on Fa...
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
IRJET- Vehicle Seat Vacancy Identification using Image Processing Technique
Human Face Detection And Identification Of Facial Expressions Using MATLAB
Face Recognition Based on Image Processing in an Advanced Robotic System
Report
Ei25822827
Image Processing In Open CV. Image Processing In Open CV. Image Processing In...
ADAPTIVE PART-LEVEL MODEL KNOWLEDGE TRANSFER FOR GENDER CLASSIFICATION
Extracting individual information using facial recognition in a smart mirror....
IRJET- Emotionalizer : Face Emotion Detection System
IRJET - Emotionalizer : Face Emotion Detection System
IRJET- Persons Identification Tool for Visually Impaired - Digital Eye
Machine learning Image classification for identification
76 s201920
Age and Gender Detection-converted.pdf
Ad

More from AI Publications (20)

PDF
Shelling and Schooling: Educational Disruptions and Social Consequences for C...
PDF
Climate Resilient Crops: Innovations in Vegetable Breeding for a Warming Worl...
PDF
Impact of Processing Techniques on Antioxidant, Antimicrobial and Phytochemic...
PDF
Determinants of Food Safety Standard Compliance among Local Meat Sellers in I...
PDF
A Study on Analysing the Financial Performance of AU Small Finance and Ujjiva...
PDF
An Examine on Impact of Social Media Advertising on Consumer Purchasing Behav...
PDF
A Study on Impact of Customer Review on Online Purchase Decision with Amazon
PDF
A Comparative Analysis of Traditional and Digital Marketing Strategies in Era...
PDF
Assessment of Root Rot Disease in Green Gram (Vigna radiata L.) Caused by Rhi...
PDF
Biochemical Abnormalities in OPS Poisoning and its Prognostic Significance
PDF
Potential energy curves, spectroscopic parameters, vibrational levels and mol...
PDF
Effect of Thermal Treatment of Two Titanium Alloys (Ti-49Al & Ti-51Al) on Cor...
PDF
Theoretical investigation of low-lying electronic states of the Be+He molecul...
PDF
Phenomenology and Production Mechanisms of Axion-Like Particles via Photon In...
PDF
Effect of Storage Conditions and Plastic Packaging on Postharvest Quality of ...
PDF
Shared Links: Building a Community Economic Ecosystem under ‘The Wall’—Based ...
PDF
Design a Novel Neutral Point Clamped Inverter Without AC booster for Photo-vo...
PDF
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
PDF
Anomaly Detection in Smart Home IoT Systems Using Machine Learning Approaches
PDF
Improving the quality of life of older adults through acupuncture
Shelling and Schooling: Educational Disruptions and Social Consequences for C...
Climate Resilient Crops: Innovations in Vegetable Breeding for a Warming Worl...
Impact of Processing Techniques on Antioxidant, Antimicrobial and Phytochemic...
Determinants of Food Safety Standard Compliance among Local Meat Sellers in I...
A Study on Analysing the Financial Performance of AU Small Finance and Ujjiva...
An Examine on Impact of Social Media Advertising on Consumer Purchasing Behav...
A Study on Impact of Customer Review on Online Purchase Decision with Amazon
A Comparative Analysis of Traditional and Digital Marketing Strategies in Era...
Assessment of Root Rot Disease in Green Gram (Vigna radiata L.) Caused by Rhi...
Biochemical Abnormalities in OPS Poisoning and its Prognostic Significance
Potential energy curves, spectroscopic parameters, vibrational levels and mol...
Effect of Thermal Treatment of Two Titanium Alloys (Ti-49Al & Ti-51Al) on Cor...
Theoretical investigation of low-lying electronic states of the Be+He molecul...
Phenomenology and Production Mechanisms of Axion-Like Particles via Photon In...
Effect of Storage Conditions and Plastic Packaging on Postharvest Quality of ...
Shared Links: Building a Community Economic Ecosystem under ‘The Wall’—Based ...
Design a Novel Neutral Point Clamped Inverter Without AC booster for Photo-vo...
Empowering Electric Vehicle Charging Infrastructure with Renewable Energy Int...
Anomaly Detection in Smart Home IoT Systems Using Machine Learning Approaches
Improving the quality of life of older adults through acupuncture

Recently uploaded (20)

PPTX
Embeded System for Artificial intelligence 2.pptx
PPTX
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
PPTX
Computers and mobile device: Evaluating options for home and work
PDF
ICT grade for 8. MATATAG curriculum .P2.pdf
PDF
Tcl Scripting for EDA.pdf
PPTX
Embedded for Artificial Intelligence 1.pptx
PPTX
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd
PPTX
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx
PPT
Lines and angles cbse class 9 math chemistry
PPTX
New professional education PROF-ED-7_103359.pptx
PDF
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
PPTX
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
PPTX
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
DOCX
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
PDF
Dozuki_Solution-hardware minimalization.
PDF
-DIGITAL-INDIA.pdf one of the most prominent
PDF
Maxon CINEMA 4D 2025 Crack Free Download Latest Version
DOCX
A PROPOSAL ON IoT climate sensor 2.docx
PPTX
Lecture-3-Computer-programming for BS InfoTech
PPT
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh
Embeded System for Artificial intelligence 2.pptx
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
Computers and mobile device: Evaluating options for home and work
ICT grade for 8. MATATAG curriculum .P2.pdf
Tcl Scripting for EDA.pdf
Embedded for Artificial Intelligence 1.pptx
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx
Lines and angles cbse class 9 math chemistry
New professional education PROF-ED-7_103359.pptx
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
Dozuki_Solution-hardware minimalization.
-DIGITAL-INDIA.pdf one of the most prominent
Maxon CINEMA 4D 2025 Crack Free Download Latest Version
A PROPOSAL ON IoT climate sensor 2.docx
Lecture-3-Computer-programming for BS InfoTech
chapter_1_a.ppthduushshwhwbshshshsbbsbsbsbsh

Gender Classification using SVM With Flask

  • 1. International Journal of Electrical, Electronics and Computers Vol-6, Issue-3 | May-Jun, 2021 Available: https://aipublications.com/ijeec/ Peer-Reviewed Journal ISSN: 2456-2319 https://dx.doi.org/10.22161/eec.63.6 43 Gender Classification using SVM With Flask Akhil Maheshwari, Dolly Sharma, Ritik Agarwal, Shivam Singh, Loveleen Kumar Department of CSE, Global Institute of Technology, Jaipur, India Received: 01 Jun 2021; Accepted: 16 Jun 2021; Date of Publication: 23 Jun 2021 ©2021 The Author(s). Published by Infogain Publication. This is an open access article under the CC BY license (https://creativecommons.org/licenses/by/4.0/). Abstract— The main objective of this work is the uniting and streamlining of an automatic face detection application and recognition system for video indexing applications. Human identification means the classification of gender which can increase the identification accuracy. So, accurate gender classification algorithms may increase the accuracy of the applications and can reduce its complexity. But, in some applications, some challenges are there such as rotation, gray scale variations that may reduce the accuracy of the application. The main goal of building this module is to understand the values in image, pattern, and array processing with OpenCV for effective processing faces for building pipe-lining, SVM models. Keywords— Gender classification, Human Recognition, Facial Images, OpenCv, Image Processing. I. INTRODUCTION Human's face identification is a major hallmark in discernible machine learning and image processing systems to identify desired target. A human face tote discriminative and separable information consisting gender, age, ethnicity, etc. Face information is applicable in many cases such as human-computer interaction, image retrieval, biometric authentication, drivers monitoring, human-robot interaction, sport competition senses analysis, video summarizing, and image/video indexing. Basically we are building a image processing application which is face recognition and it also try to detect the facial features and classify the gender i.e male or female. The process is starting by gathering the data. As the data is gathered we are going to arrange the highly unstructured data in a structured form after that we are learning image techniques using OpenCV and get mathematical concept behind the image. For image analysis we require techniques for preprocessing our data, extract feature from image like computing eigen images using PCA(Principal Component Analysis) and Single Value Decomposition. With the eigen images we can learn to test our Machine Learning model, and the model before deploying it. After Machine Learning model is ready we are going to learn to develop web server gateway in flask by using HTML, CSS and BOOTSTRAP in front-end part and PYTHON for back-end part. The below image shows the steps for building the application. II. METHODOLOGY In this Web App we will be working on input image of human beings. The uploaded image must be clean and clear to extract the human facial features from image taken as Input for the processing. We tested the project only on the human faces. The following methods is used in this technology:- 1. Image Uploading 2. RGB/BGR to gray scale 3. Image Data Preprocessing and Analysis 4. Predictive Model 5. Displaying result III. IMAGE UPLOADING This is initial phase of the project. We will be uploading the image to the project. It is a normal image of human being. The image type must be JPEG or PNG. We have used HTML form to upload the image.
  • 2. Akhil Maheshwari at al. Gender Classification using SVM With Flask ISSN: 2456-2319 https://dx.doi.org/10.22161/eec.63.6 44 Fig. 1: Uploaded Image IV. RGB/BGR to GREY SCALE The image is passed to pipeline model which is integrated with flask. Understanding Data is must within the project life cycle. We have to understand the data starting from domain knowledge. We will work on the image taken as input. It can be in RGB or BGR format. The digital images are used to represented in multi-dimension arrays. We will be converting that image into gray scale using cv2 library. Gray scale image is two dimension array. The function used to convert image into gray scale is given below:- if color == 'bgr': gray = cv2.cvtColor(imageFile, cv2.COLOR_BGR2GRAY) else: gray = cv2.cvtColor(imageFile, cv2.COLOR_RGB2GRAY) Fig. 2: Image Conversion V. ImAGE DATA ANLYSIS &PREPROCESSING In this phase we will be working on the gray scale image which is extracted from the input image which is obtained from above methods. There are four kinds of analysis that need to perform on the extracted image for better decision making and they are listed below: Defining Transformation: In this step we will be finding the shape of the image. We will be finding the optimal size from the histogram and box-plot. Hazed Removal (Noise Remove): In this step we will be removing noise from the image by adjusting light intensity, estimating transmission map and clarifying image. Image Segmentation: In this step we will be partitioning the image into multiple segments (sets of pixels, also known as image objects). The goal of segmentation is to simplify and/or change the representation of an image into something that is more meaningful and easier to analyze. Image segmentation is typically used to locate objects and boundaries (lines, curves, etc.) in images. More precisely, image segmentation is the process of assigning a label to every pixel in an image such that pixels with the same label share certain characteristics. Object Detection: Face detection is a computer technology being used in a variety of applications that identifies human faces in digital images. Python library OpenCV will be used for face recognition. We will be detecting the face from the gray scale image using cv2 library. We will be performing further more methods on that face detected using the given function:- faces = haarcascade.detectMultiScale(gray,1.5,3) Fig. 3: Cropped Image VI. FEATURE EXTRACTION We cannot directly detect faces that were cleaned and extracted faces using object detection techniques with Machine Learning models. We will need to extract the features from the face. The Feature extraction techniques we used are an eigen images approach. Eigen face Fig. 4: Eigen Image
  • 3. Akhil Maheshwari at al. Gender Classification using SVM With Flask ISSN: 2456-2319 https://dx.doi.org/10.22161/eec.63.6 45 An eigen face is the name given to a set of eigen vectors when used in the computer vision problem of human face recognition. We will be deriving the eigen vectors from the covariance matrix of the probability distribution over the high-dimensional vector space of face images. This produces dimension reduction by allowing the smaller set of basis images to represent the original training images. Classification can be achieved by comparing how faces are represented by the basis set. VII. PREDICTIVE MODEL We have trained a machine learning model with the eigen image data. There are many machine learning models are there but for the image we will be using SVM. In this phase we will be detecting gender of each face using trained SVM model. Now there each Face is recognized individually in this phase. Fig. 5: Feeding Images VIII. DISPLAYING MODEL This is the final phase of the project. We have performed all the method. We will be displaying Gender of the Image and the predicted score. Fig. 6: Producing Output Fig. 7: Interface for Upload Fig. 8: Data Flow IX. CONCLUSION In this Gender classification project we made software which detects Gender using SVM model. It will be finding the face of the human and predicting the gender. Though we have tried to make efficient software but there are some conditions for this software to work:- • Image of the human faces should be clean and clear. • Image quality should be high. X. FUTURE WORK On the future direction, results that are Good for
  • 4. Akhil Maheshwari at al. Gender Classification using SVM With Flask ISSN: 2456-2319 https://dx.doi.org/10.22161/eec.63.6 46 gender recognition as well as years opinion can continue to be received utilizing transfer learning strategies with expansion in reliability. Combos of fusions as well as datasets of attributes might be what is on the horizon for the development. ACKNOWLEDGEMENTS An acknowledgement section may be presented after the conclusion, if desired. REFERENCES [1] [online] Available: https://www.engpaper.com/face- recognition-2018.htm.J. Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rd ed., vol. 2. Oxford: Clarendon, 1892, pp.68–73. [2] Samuel Manoharan, "Image Detection Classification and Recognition for Leak Detection in Automobiles", Journal of Innovative Image Processing (JIIP), vol. 1, no. 02, pp. 61- 70, 2019.K. Elissa, “Title of paper if known,” unpublished. [3] [online] Available: https://www.semanticscholar.org/paper/Face-Detection- using-Digital-Image-Processing-Jindal- Gupta/a0a9390e14beb38c504473c3adc857f8faeaebd2 [4] Md. Khalid Rahmani, M.A. Ansari and Amit Goel, "An efficient indexing algorithm for CBIR", Proceedings - 2015 IEEE International Conference on Computational Intelligence and Communication Technology CICT 2015, pp. 73-77, 2015. [5] Cao Qiong, Shen Li, Xie Weidi, Omkar M Parkhi and Andrew Zisserman, "VGGFace 2: A dataset for recognising faces across pose and age", IEEE Conference on Automatic Face and Gesture Recognition, 2018. [6] Junjue Wang, Brandon Amos, Anupam Das, Padmanabhan Pillai, Norman Sadeh and Mahadev Satyanarayanan, "Enabling Live Video Analytics with a Scalable and Privacy-Aware Framework", ACM Transactions on Multimedia Computing Communications and Applications (TOMM), vol. 14, no. 3s, pp. 64, 2018. [7] Arsha Nagrani, Samuel Albanie and Andrew Zisserman, Seeing Voices and Hearing Faces: Cross-modal biometric matching, 2018, [online] Available: