SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 02 | Feb 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3083
REAL TIME FACIAL ANALYSIS USING TENSORFLOWAND OPENCV
Lokesh S1, Nithish singh A2, Raja D3, Janani S4
1,2,3Computer science and Engineering , Adhiyamaan college of engineering , Tamil Nadu , India
4Assistant Professor, Department of Computer Science, Adhiyamaan college of engineering, Tamil Nadu, India
---------------------------------------------------------------------***----------------------------------------------------------------------
Abstract - The main objective of this project to develop a
real time facial analysis using opencv and tensorflow for
artisum people where user can see the facial expression, age
and gender of the male and female. Face regonition and
analysis from an image and video. Most signal or image
processing algorithms should be designed with real time
execution in mind.Facial features are considered as one of
the important personal characteristics. This can be used in
many applications, such as face recognition and age
estimation. The value of these applications depends in
several areas, such as security applications, law
enforcement applications, and attendance systems. In
addition, facial features are particularly the key usage in the
finding of lost child. Present applications have achieved a
high level of accuracy. This paper provides a survey of face
recognition, including the age estimation, which was
discussed. Moreover, the research outlines several
challenges faced in face recognition area that had been
explored. The research also provides a landscape mapping
based on integrating into a critical and coherent taxonomy.
In the methodology sections, the exploration the
accomplished via a deep focused in every single article in
‘‘Face Recognition’’, then ‘‘Age Estimation’’, and later in
‘‘Facial Features’’. The ‘‘Articles extraction’’ is mining from
diverse sources, such as Web of Science, ACM, IEEE, Science
Direct, and Springer databases. The research covers overall
72 articles; 32/72 articles were face recognition. Moreover,
39/72 of the articles were for age estimation. A comparison
based on the objectives of the approaches is presented to
underline the taxonomy. Ending by research conclusion on
face techniques contributes to the understanding of the
recognition approaches, which can be used in future
researches. The research concluded that face techniques’
performance is distinct from one data set to another. This
paper contributes to display gaps for other researchers to
join this line of research.
Key Words: Face recognition, age estimation, aging and
facial expression
1. INTRODUCTION
There are few facial features used in facial technology.
This technology is used to recognize the exterior organs of
the body such as mouth, eyes and also gender of a person.
The major source of data that is used in this technology is
the features extracted from the organs. There are three
levels of features used. The foremost factor is to extract in
depth micro level features that includes moles on body,
birth marks [4]. This technology is widely used in various
domain such as stage estimation etc. In most of the models
the major process to be considered is as the stage of the
person changes from time to time accordingly the
appearance of a person change. The major flaw in this
technique is wrinkles formed on face as the person grows
older. The technology is evolved over a time to specify the
age of a person based on the visual appearance even
though the birth date of a person is not known. Anyone
can calculate the age of a person by knowing the birth
date, but this technology is specifically designed to
estimate the age of a person based on the facial looks that
too mainly if a person face is with wrinkles then there
some advantage and disadvantage involved in it [6]. Aging
is a common factor that is affecting and irrepressible
process in each and every individual life throughout the
life span [7]. This type of technology is also used in
criminal activities to find out lost children. There are
already few major challenges that were enforced. This
paper provides clear cut details on the architecture,
advantages and limitations of facial recognition technique.
There are n number of domains using this type of
recognition such as in biology, security purpose and so on.
The same technology is also used by human forensics to
recognize the late person by collaborating the tissue in
face [8]. As the list prolong in the usage of this technique,
the one such major application uses this method is in
security purpose such as biometric identification [9]. The
collection of named data is one such problem faced in this
methodology is more complex compared to age detection
based on person looks [10], [11]. This paper explains
about the disadvantages faced in existing system and how
it can be overcome by using proposed system. This paper
also provide an edge to the challenges that are
experienced in facial recognition, architecture used.
1.1 METHODOLOGY
There are two terminology that are most preferably used
in this method such as face and age estimation. This also
includes features extraction from face to determine the
age of the person that is caused because of ageing scenario
that every person has to undergo in his/her lifespan
INFORMATION SOURCES
Even though there are so many existing database were
found to get an immense knowledge on the problems that
are encountered in the field of facial recognition
technology and we have referred to few articles such a
Springer, IEEE Xplore, Science Direct database, WoS
service, ACM DL and list prolongs.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 02 | Feb 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3084
A. SELECT PAPER
The selection of the paper to get an idea of how existing
system work depends two modes: iteration and filtering.
During iteration the unwanted and irrelevant paper are
removed/hidden similar to the technical word abstraction
in technical term. Filtering phase is completely following
this stage.
B. ELIGIBILITY CRITERIA
To develop the proposed system as a developers the
selection of papers and papers referred are carried from
2010 to 2018.
2. EXISTING SYSTEMS
LINEAR DISCRIMINATE ANALYSIS
LDA is used to minimize features that will be
overwhelming and mostly not used in this technique. The
resultant obtained is linear classifier. To detect the facial
features properly, this analysis requires more number of
pixels.
PRINCIPAL COMPONENT ANALYSIS
PCA is a procedure that converts correlated variables into
uncorrelated variables. This uncorrelated variables are
known as principal components. The first uncorrelated
components says about the variation in the data and
subsequent components says about other variations that
can be expected. PCA is widely used to develop predictive
models and so on. With the help of PCA the Eigen value
decomposition is performed. By skimpy the internal
structure of the data the variance present in it is known.
HIDDEN MARKOV MODEL
HMM is a statistical model that describes the event that
are not directly observable, but the events are depending
interior factors. The observed event is called as a ‘symbol’
and the factor underlying the observation is a ‘state’. This
type of model is preferably used in bioinformatics,
biological sequence analysis.
3. PROPOSED SYSTEM AND TECHNIQUE
System accuracy is influenced by different factors in that
one such pattern is number of pixels combined to a form
an image. Before supplying any image to face recognition
system the foremost attention should be taken by applying
all pre-processing techniques. Depending upon how the
algorithm is trained the face recognition system works.
Consider if an algorithm is trained to detect a person in a
bright room then it is impossible for a person to be
detected in a dark room. There are various other kinds of
problems be faced in this method such as all the pixel
coordinate should be same. Hence a proper preprocessing
filter is recommended. The proposed system uses Eigen
values using grayscale images. Histogram is applied after
conversion of image to grayscale is done. The more of
preprocessing techniques applied, the more the clarity of
image is found and thus results obtained is also less error
prone. The image that is sent via file or video is classified
to detect the faces. The classification is done faster and
with a good efficiency.
4. SAMPLE CODE
A. Training Set
Def assure_path_exists(path):
dir = os.path.dirname(path)
if not os.path.exists(dir):
os.makedirs(dir)
recognizer = cv2.face.LBPHFaceRecognizer_create()
Detector=cv2.CascadeClassifier("haarcascade_frontalface_
de fault.xml");
def getImagesAndLabels(path):
imagePaths = [os.path.join(path,f)
for f in os.listdir(path)]
faceSamples=[]
ids = []
for imagePath in imagePaths:
PIL_img = Image.open(imagePath).convert('L')
img_numpy = np.array(PIL_img,'uint8')
id = int(os.path.split(imagePath)[-1].split(".")[1])
faces = detector.detectMultiScale(img_numpy)
for (x,y,w,h) in faces:
faceSamples.append(img_numpy[y:y+h,x:x+w])
ids.append(id)
return
faceSamples,ids faces,ids = getImagesAndLabels('dataset')
recognizer.train(faces, np.array(ids))
assure_path_exists('trainer/')
recognizer.save('trainer/trainer.yml')
B. Face Datasets
def assure_path_exists(path):
dir = os.path.dirname(path)
if not os.path.exists(dir):
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 02 | Feb 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3085
os.makedirs(dir)
vid_cam = cv2.VideoCapture(0)
face_detector=cv2.CascadeClassifier('haarcascade_frontalf
ace_default.xm l')
face_id = 1 count = 0
assure_path_exists("dataset/")
while(True): _,
image_frame = vid_cam.read()
gray=cv2.cvtColor(image_frame, cv2.COLOR_BGR2GRAY)
faces = face_detector.detectMultiScale(gray, 1.3, 5)
for (x,y,w,h) in faces: cv2.rectangle(image_frame, (x,y),
(x+w,y+h), (255,0,0), 2)
count += 1 cv2.imwrite("dataset/User." + str(face_id) +
str(count) + ".jpg", gray[y:y+h,x:x+w])
cv2.imshow('frame', image_frame)
if cv2.waitKey(100) & 0xFF == ord('q'):
break
elif
count>100:
break
vid_cam.release()
cv2.destroyAllWindows()
C. Face Detection
def assure_path_exists(path):
dir = os.path.dirname(path)
if not os.path.exists(dir):
os.makedirs(dir)
recognizer = cv2.face.LBPHFaceRecognizer_create()
assure_path_exists("trainer/")
recognizer.read('trainer/trainer.yml')
cascadePath = "haarcascade_frontalface_default.xml"
faceCascade = cv2.CascadeClassifier(cascadePath);
font = cv2.FONT_HERSHEY_SIMPLEX
cam = cv2.VideoCapture(0)
while True:ret,
im=cam.read()
gray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
faces = faceCascade.detectMultiScale(gray, 1.2,5)
for(x,y,w,h) in faces: cv2.rectangle(im, (x-20,y-20),
(x+w+20,y+h+20), (0,255,0), 4) Id, confidence =
recognizer.predict(gray[y:y+h,x:x+w])
if(Id == 1):
Id = "ARJUN {0:.2f}%".format(round(100 - confidence, 2))
cv2.rectangle(im, (x-22,y-90), (x+w+22, y-22), (0,255,0),
1) cv2.putText(im, str(Id), (x,y-40), font, 1, (255,255,255),
3) cv2.imshow('im',im)
if cv2.waitKey(10) & 0xFF == ord('q'): break
cam.release() cv2.destroyAllWindows()
5. CONCLUSION
In this paper, by using opencv as a set of library
programming functions a system is developed to estimate
the age of a person by extracting the features in face. A
dataset that contains a set of images are defined and
trained before recognizing process proceeds. Haar cascade
algorithm is used for detection. In upcoming generations
few more features are included to enhance the changes for
a proper recognition by overcoming the problems such as
wrinkles on a face etc.
REFERENCES
[1]https://www.youtube.com/watch?list=PLQVvvaa0QuD
f KTOs3Keq_kaG2P55YRn5v&v=OGxgnH8y2NM
[2] https://opencv.org/
[3]https://docs.opencv.org/3.4/d7/d8b/tutorial_py_face_
d etection.html
[4]https://pythonprogramming.net/haar-cascade-
objectdetection-python-opencv-tutorial/
[5] .Open Source Computer Vision Library Reference
Manual-intel [Media]
[6] Tej Pal Singh, “Face Recognition by using Feed
Forward Back Propagation Neural Network”, International
Journal of Innovative Research in Technology & Science,
vol.1, no.1
[7] N.Revathy, T.Guhan, “Face recognition system using
back propagation artificial neural networks”, International
Journal of Advanced Engineering Technology, vol.3, no. 1,
2012.
[8] M.A.Turk and A.P. Pentaland, “Face Recognition Using
Eigenfaces”, IEEE conf. on Computer Vision and Pattern
Recognition, pp. 586-591, 1991

More Related Content

What's hot (19)

PDF
Face Recognition Technology
ijtsrd
 
PDF
A Hybrid Approach to Face Detection And Feature Extraction
iosrjce
 
PDF
IRJET- Automated Attendance System using Face Recognition
IRJET Journal
 
PDF
Mining of Images Based on Structural Features Correlation for Facial Annotation
IRJET Journal
 
PDF
Explaining Aluminous Ascientification Of Significance Examples Of Personal St...
SubmissionResearchpa
 
PDF
IJSRED-V2I1P12
IJSRED
 
PDF
Review of face detection systems based artificial neural networks algorithms
ijma
 
PDF
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...
IRJET Journal
 
PDF
AN IMPROVED TECHNIQUE FOR HUMAN FACE RECOGNITION USING IMAGE PROCESSING
ijiert bestjournal
 
PDF
Human Face Detection and Tracking for Age Rank, Weight and Gender Estimation ...
IJERA Editor
 
PDF
IRJET- A Study on Automated Attendance System using Facial Recognition
IRJET Journal
 
PDF
Face recognition a survey
ieijjournal
 
PDF
Face Recognition Techniques - An evaluation Study
Eswar Publications
 
PDF
184
vivatechijri
 
PPTX
AI Approach for Iris Biometric Recognition Using a Median Filter
NIDHI SHARMA
 
PDF
Local Descriptor based Face Recognition System
IRJET Journal
 
PDF
Face Recognition Based Attendance System using Machine Learning
YogeshIJTSRD
 
PDF
Facial image classification and searching –a survey
Zac Darcy
 
Face Recognition Technology
ijtsrd
 
A Hybrid Approach to Face Detection And Feature Extraction
iosrjce
 
IRJET- Automated Attendance System using Face Recognition
IRJET Journal
 
Mining of Images Based on Structural Features Correlation for Facial Annotation
IRJET Journal
 
Explaining Aluminous Ascientification Of Significance Examples Of Personal St...
SubmissionResearchpa
 
IJSRED-V2I1P12
IJSRED
 
Review of face detection systems based artificial neural networks algorithms
ijma
 
IRJET- A Comprehensive Survey and Detailed Study on Various Face Recognition ...
IRJET Journal
 
AN IMPROVED TECHNIQUE FOR HUMAN FACE RECOGNITION USING IMAGE PROCESSING
ijiert bestjournal
 
Human Face Detection and Tracking for Age Rank, Weight and Gender Estimation ...
IJERA Editor
 
IRJET- A Study on Automated Attendance System using Facial Recognition
IRJET Journal
 
Face recognition a survey
ieijjournal
 
Face Recognition Techniques - An evaluation Study
Eswar Publications
 
AI Approach for Iris Biometric Recognition Using a Median Filter
NIDHI SHARMA
 
Local Descriptor based Face Recognition System
IRJET Journal
 
Face Recognition Based Attendance System using Machine Learning
YogeshIJTSRD
 
Facial image classification and searching –a survey
Zac Darcy
 

Similar to IRJET - Real Time Facial Analysis using Tensorflowand OpenCV (20)

PDF
Progression in Large Age-Gap Face Verification
IRJET Journal
 
PDF
IRJET- Library Management System with Facial Biometric Authentication
IRJET Journal
 
PDF
IRJET- Design, Test the Performance Evaluation of Automobile Security Tec...
IRJET Journal
 
PDF
Paper id 25201441
IJRAT
 
PDF
IRJET- Persons Identification Tool for Visually Impaired - Digital Eye
IRJET Journal
 
PDF
A novel approach for performance parameter estimation of face recognition bas...
IJMER
 
PDF
Development of Real Time Face Recognition System using OpenCV
IRJET Journal
 
PDF
Paper id 24201475
IJRAT
 
PDF
IRJET - A Review on Face Recognition using Deep Learning Algorithm
IRJET Journal
 
PDF
Comparative Analysis of Face Recognition Methodologies and Techniques
Farwa Ansari
 
PDF
IRJET-A Survey on Face Recognition based Security System and its Applications
IRJET Journal
 
DOCX
Innovative Analytic and Holistic Combined Face Recognition and Verification M...
ijbuiiir1
 
PDF
HUMAN FACE RECOGNITION USING IMAGE PROCESSING PCA AND NEURAL NETWORK
ijiert bestjournal
 
PDF
Ck36515520
IJERA Editor
 
DOCX
Face recognition system
Yogesh Lamture
 
PDF
Face Verification Across Age Progression using Enhanced Convolution Neural Ne...
sipij
 
PDF
Face Verification Across Age Progression using Enhanced Convolution Neural Ne...
sipij
 
PDF
FACE VERIFICATION ACROSS AGE PROGRESSION USING ENHANCED CONVOLUTION NEURAL NE...
sipij
 
PDF
Face Verification Across Age Progression using Enhanced Convolution Neural Ne...
sipij
 
PDF
IRJET- A Review on Various Approaches of Face Recognition
IRJET Journal
 
Progression in Large Age-Gap Face Verification
IRJET Journal
 
IRJET- Library Management System with Facial Biometric Authentication
IRJET Journal
 
IRJET- Design, Test the Performance Evaluation of Automobile Security Tec...
IRJET Journal
 
Paper id 25201441
IJRAT
 
IRJET- Persons Identification Tool for Visually Impaired - Digital Eye
IRJET Journal
 
A novel approach for performance parameter estimation of face recognition bas...
IJMER
 
Development of Real Time Face Recognition System using OpenCV
IRJET Journal
 
Paper id 24201475
IJRAT
 
IRJET - A Review on Face Recognition using Deep Learning Algorithm
IRJET Journal
 
Comparative Analysis of Face Recognition Methodologies and Techniques
Farwa Ansari
 
IRJET-A Survey on Face Recognition based Security System and its Applications
IRJET Journal
 
Innovative Analytic and Holistic Combined Face Recognition and Verification M...
ijbuiiir1
 
HUMAN FACE RECOGNITION USING IMAGE PROCESSING PCA AND NEURAL NETWORK
ijiert bestjournal
 
Ck36515520
IJERA Editor
 
Face recognition system
Yogesh Lamture
 
Face Verification Across Age Progression using Enhanced Convolution Neural Ne...
sipij
 
Face Verification Across Age Progression using Enhanced Convolution Neural Ne...
sipij
 
FACE VERIFICATION ACROSS AGE PROGRESSION USING ENHANCED CONVOLUTION NEURAL NE...
sipij
 
Face Verification Across Age Progression using Enhanced Convolution Neural Ne...
sipij
 
IRJET- A Review on Various Approaches of Face Recognition
IRJET Journal
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Ad

Recently uploaded (20)

PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PPTX
Day2 B2 Best.pptx
helenjenefa1
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Day2 B2 Best.pptx
helenjenefa1
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Design Thinking basics for Engineers.pdf
CMR University
 
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 

IRJET - Real Time Facial Analysis using Tensorflowand OpenCV

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 02 | Feb 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3083 REAL TIME FACIAL ANALYSIS USING TENSORFLOWAND OPENCV Lokesh S1, Nithish singh A2, Raja D3, Janani S4 1,2,3Computer science and Engineering , Adhiyamaan college of engineering , Tamil Nadu , India 4Assistant Professor, Department of Computer Science, Adhiyamaan college of engineering, Tamil Nadu, India ---------------------------------------------------------------------***---------------------------------------------------------------------- Abstract - The main objective of this project to develop a real time facial analysis using opencv and tensorflow for artisum people where user can see the facial expression, age and gender of the male and female. Face regonition and analysis from an image and video. Most signal or image processing algorithms should be designed with real time execution in mind.Facial features are considered as one of the important personal characteristics. This can be used in many applications, such as face recognition and age estimation. The value of these applications depends in several areas, such as security applications, law enforcement applications, and attendance systems. In addition, facial features are particularly the key usage in the finding of lost child. Present applications have achieved a high level of accuracy. This paper provides a survey of face recognition, including the age estimation, which was discussed. Moreover, the research outlines several challenges faced in face recognition area that had been explored. The research also provides a landscape mapping based on integrating into a critical and coherent taxonomy. In the methodology sections, the exploration the accomplished via a deep focused in every single article in ‘‘Face Recognition’’, then ‘‘Age Estimation’’, and later in ‘‘Facial Features’’. The ‘‘Articles extraction’’ is mining from diverse sources, such as Web of Science, ACM, IEEE, Science Direct, and Springer databases. The research covers overall 72 articles; 32/72 articles were face recognition. Moreover, 39/72 of the articles were for age estimation. A comparison based on the objectives of the approaches is presented to underline the taxonomy. Ending by research conclusion on face techniques contributes to the understanding of the recognition approaches, which can be used in future researches. The research concluded that face techniques’ performance is distinct from one data set to another. This paper contributes to display gaps for other researchers to join this line of research. Key Words: Face recognition, age estimation, aging and facial expression 1. INTRODUCTION There are few facial features used in facial technology. This technology is used to recognize the exterior organs of the body such as mouth, eyes and also gender of a person. The major source of data that is used in this technology is the features extracted from the organs. There are three levels of features used. The foremost factor is to extract in depth micro level features that includes moles on body, birth marks [4]. This technology is widely used in various domain such as stage estimation etc. In most of the models the major process to be considered is as the stage of the person changes from time to time accordingly the appearance of a person change. The major flaw in this technique is wrinkles formed on face as the person grows older. The technology is evolved over a time to specify the age of a person based on the visual appearance even though the birth date of a person is not known. Anyone can calculate the age of a person by knowing the birth date, but this technology is specifically designed to estimate the age of a person based on the facial looks that too mainly if a person face is with wrinkles then there some advantage and disadvantage involved in it [6]. Aging is a common factor that is affecting and irrepressible process in each and every individual life throughout the life span [7]. This type of technology is also used in criminal activities to find out lost children. There are already few major challenges that were enforced. This paper provides clear cut details on the architecture, advantages and limitations of facial recognition technique. There are n number of domains using this type of recognition such as in biology, security purpose and so on. The same technology is also used by human forensics to recognize the late person by collaborating the tissue in face [8]. As the list prolong in the usage of this technique, the one such major application uses this method is in security purpose such as biometric identification [9]. The collection of named data is one such problem faced in this methodology is more complex compared to age detection based on person looks [10], [11]. This paper explains about the disadvantages faced in existing system and how it can be overcome by using proposed system. This paper also provide an edge to the challenges that are experienced in facial recognition, architecture used. 1.1 METHODOLOGY There are two terminology that are most preferably used in this method such as face and age estimation. This also includes features extraction from face to determine the age of the person that is caused because of ageing scenario that every person has to undergo in his/her lifespan INFORMATION SOURCES Even though there are so many existing database were found to get an immense knowledge on the problems that are encountered in the field of facial recognition technology and we have referred to few articles such a Springer, IEEE Xplore, Science Direct database, WoS service, ACM DL and list prolongs.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 02 | Feb 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3084 A. SELECT PAPER The selection of the paper to get an idea of how existing system work depends two modes: iteration and filtering. During iteration the unwanted and irrelevant paper are removed/hidden similar to the technical word abstraction in technical term. Filtering phase is completely following this stage. B. ELIGIBILITY CRITERIA To develop the proposed system as a developers the selection of papers and papers referred are carried from 2010 to 2018. 2. EXISTING SYSTEMS LINEAR DISCRIMINATE ANALYSIS LDA is used to minimize features that will be overwhelming and mostly not used in this technique. The resultant obtained is linear classifier. To detect the facial features properly, this analysis requires more number of pixels. PRINCIPAL COMPONENT ANALYSIS PCA is a procedure that converts correlated variables into uncorrelated variables. This uncorrelated variables are known as principal components. The first uncorrelated components says about the variation in the data and subsequent components says about other variations that can be expected. PCA is widely used to develop predictive models and so on. With the help of PCA the Eigen value decomposition is performed. By skimpy the internal structure of the data the variance present in it is known. HIDDEN MARKOV MODEL HMM is a statistical model that describes the event that are not directly observable, but the events are depending interior factors. The observed event is called as a ‘symbol’ and the factor underlying the observation is a ‘state’. This type of model is preferably used in bioinformatics, biological sequence analysis. 3. PROPOSED SYSTEM AND TECHNIQUE System accuracy is influenced by different factors in that one such pattern is number of pixels combined to a form an image. Before supplying any image to face recognition system the foremost attention should be taken by applying all pre-processing techniques. Depending upon how the algorithm is trained the face recognition system works. Consider if an algorithm is trained to detect a person in a bright room then it is impossible for a person to be detected in a dark room. There are various other kinds of problems be faced in this method such as all the pixel coordinate should be same. Hence a proper preprocessing filter is recommended. The proposed system uses Eigen values using grayscale images. Histogram is applied after conversion of image to grayscale is done. The more of preprocessing techniques applied, the more the clarity of image is found and thus results obtained is also less error prone. The image that is sent via file or video is classified to detect the faces. The classification is done faster and with a good efficiency. 4. SAMPLE CODE A. Training Set Def assure_path_exists(path): dir = os.path.dirname(path) if not os.path.exists(dir): os.makedirs(dir) recognizer = cv2.face.LBPHFaceRecognizer_create() Detector=cv2.CascadeClassifier("haarcascade_frontalface_ de fault.xml"); def getImagesAndLabels(path): imagePaths = [os.path.join(path,f) for f in os.listdir(path)] faceSamples=[] ids = [] for imagePath in imagePaths: PIL_img = Image.open(imagePath).convert('L') img_numpy = np.array(PIL_img,'uint8') id = int(os.path.split(imagePath)[-1].split(".")[1]) faces = detector.detectMultiScale(img_numpy) for (x,y,w,h) in faces: faceSamples.append(img_numpy[y:y+h,x:x+w]) ids.append(id) return faceSamples,ids faces,ids = getImagesAndLabels('dataset') recognizer.train(faces, np.array(ids)) assure_path_exists('trainer/') recognizer.save('trainer/trainer.yml') B. Face Datasets def assure_path_exists(path): dir = os.path.dirname(path) if not os.path.exists(dir):
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 02 | Feb 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3085 os.makedirs(dir) vid_cam = cv2.VideoCapture(0) face_detector=cv2.CascadeClassifier('haarcascade_frontalf ace_default.xm l') face_id = 1 count = 0 assure_path_exists("dataset/") while(True): _, image_frame = vid_cam.read() gray=cv2.cvtColor(image_frame, cv2.COLOR_BGR2GRAY) faces = face_detector.detectMultiScale(gray, 1.3, 5) for (x,y,w,h) in faces: cv2.rectangle(image_frame, (x,y), (x+w,y+h), (255,0,0), 2) count += 1 cv2.imwrite("dataset/User." + str(face_id) + str(count) + ".jpg", gray[y:y+h,x:x+w]) cv2.imshow('frame', image_frame) if cv2.waitKey(100) & 0xFF == ord('q'): break elif count>100: break vid_cam.release() cv2.destroyAllWindows() C. Face Detection def assure_path_exists(path): dir = os.path.dirname(path) if not os.path.exists(dir): os.makedirs(dir) recognizer = cv2.face.LBPHFaceRecognizer_create() assure_path_exists("trainer/") recognizer.read('trainer/trainer.yml') cascadePath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascadePath); font = cv2.FONT_HERSHEY_SIMPLEX cam = cv2.VideoCapture(0) while True:ret, im=cam.read() gray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) faces = faceCascade.detectMultiScale(gray, 1.2,5) for(x,y,w,h) in faces: cv2.rectangle(im, (x-20,y-20), (x+w+20,y+h+20), (0,255,0), 4) Id, confidence = recognizer.predict(gray[y:y+h,x:x+w]) if(Id == 1): Id = "ARJUN {0:.2f}%".format(round(100 - confidence, 2)) cv2.rectangle(im, (x-22,y-90), (x+w+22, y-22), (0,255,0), 1) cv2.putText(im, str(Id), (x,y-40), font, 1, (255,255,255), 3) cv2.imshow('im',im) if cv2.waitKey(10) & 0xFF == ord('q'): break cam.release() cv2.destroyAllWindows() 5. CONCLUSION In this paper, by using opencv as a set of library programming functions a system is developed to estimate the age of a person by extracting the features in face. A dataset that contains a set of images are defined and trained before recognizing process proceeds. Haar cascade algorithm is used for detection. In upcoming generations few more features are included to enhance the changes for a proper recognition by overcoming the problems such as wrinkles on a face etc. REFERENCES [1]https://www.youtube.com/watch?list=PLQVvvaa0QuD f KTOs3Keq_kaG2P55YRn5v&v=OGxgnH8y2NM [2] https://opencv.org/ [3]https://docs.opencv.org/3.4/d7/d8b/tutorial_py_face_ d etection.html [4]https://pythonprogramming.net/haar-cascade- objectdetection-python-opencv-tutorial/ [5] .Open Source Computer Vision Library Reference Manual-intel [Media] [6] Tej Pal Singh, “Face Recognition by using Feed Forward Back Propagation Neural Network”, International Journal of Innovative Research in Technology & Science, vol.1, no.1 [7] N.Revathy, T.Guhan, “Face recognition system using back propagation artificial neural networks”, International Journal of Advanced Engineering Technology, vol.3, no. 1, 2012. [8] M.A.Turk and A.P. Pentaland, “Face Recognition Using Eigenfaces”, IEEE conf. on Computer Vision and Pattern Recognition, pp. 586-591, 1991