SlideShare una empresa de Scribd logo
1 de 57
Automatic Attendance
System using Face
Recognition
P R E S E N T E D BY :
VAT S A L B O R A D H A R A
WHAT WE USE
• TensorFlow
• TensorFlow is a free and open-source software library for dataflow and differentiable
programming across a range of tasks. It is a symbolic math library, and is also used for
machine learning applications such as neural networks.
• TensorFlow is Google Brain's second-generation system
• Keras
• Keras is an open-source neural-network library written in Python. It is capable of running
on top of TensorFlow, Microsoft Cognitive Toolkit, Theano, or PlaidML. Designed to enable
fast experimentation with deep neural networks.
• In 2017, Google's TensorFlow team decided to support Keras in TensorFlow's core
library. Chollet explained that Keras was conceived to be an interface rather than a
standalone machine-learning framework. It offers a higher-level, more intuitive set of
abstractions that make it easy to develop deep learning models regardless of the
computational backend used.
• Open CV
• OpenCV is Open Source Computer Vision Library is an open source computer vision
and machine learning software library.
• OpenCV is a library of programming functions mainly aimed at real-time computer
vision. Originally developed by Intel.
DEEP LEARNING
• Deep learning is an artificial intelligence function that imitates the workings of the
human brain in processing data and creating patterns for use in decision making. Deep
learning is a subset of machine learning in artificial intelligence (AI) that has networks
capable of learning unsupervised from data that is unstructured or unlabeled. Also
known as deep neural learning or deep neural network.
• use a cascade of multiple layers of nonlinear processing units for feature
extraction and transformation. Each successive layer uses the output from the previous
layer as input.
• learn in supervised (e.g., classification) and/or unsupervised (e.g., pattern analysis)
manners.
• learn multiple levels of representations that correspond to different levels of
abstraction; the levels form a hierarchy of concepts.
NEURAL NETWORKS AND
DEEP LEARNING
• A deep neural network (DNN) is an artificial neural network (ANN) with multiple
layers between the input and output layers. ... Each mathematical manipulation as such
is considered a layer, and complex DNN have many layers, hence the name
"deep" networks.
CONT…
• Artificial neural networks (ANNs) or connectionist systems are computing systems inspired by the biological neural
networks that constitute animal brains. Such systems learn (progressively improve their ability) to do tasks by considering
examples, generally without task-specific programming. For example, in image recognition, they might learn to identify
images that contain cats by analyzing example images that have been manually labeled as "cat" or "no cat" and using the
analytic results to identify cats in other images. They have found most use in applications difficult to express with a
traditional computer algorithm using rule-based programming.
• An ANN is based on a collection of connected units called artificial neurons, (analogous to biological neurons in
brain). Each connection (synapse) between neurons can transmit a signal to another neuron. The receiving (postsynaptic)
neuron can process the signal(s) and then signal downstream neurons connected to it. Neurons may have state, generally
represented by real numbers, typically between 0 and 1. Neurons and synapses may also have a weight that varies as
learning proceeds, which can increase or decrease the strength of the signal that it sends downstream.
• Typically, neurons are organized in layers. Different layers may perform different kinds of transformations on their inputs.
Signals travel from the first (input), to the last (output) layer, possibly after traversing the layers multiple times.
• The original goal of the neural network approach was to solve problems in the same way that a human brain would. Over
time, attention focused on matching specific mental abilities, leading to deviations from biology such as backpropagation,
or passing information in the reverse direction and adjusting the network to reflect that information.
• Neural networks have been used on a variety of tasks, including computer vision, speech recognition, machine
translation, social network filtering, playing board and video games and medical diagnosis.
LIBRARY USE
• scikit-learn
• Scikit-learn is a free software machine learning library for the Python programming
language. It features various classification, regression and clustering algorithms
including support vector machines, random forests, gradient boosting, k-
means and DBSCAN, and is designed to interoperate with the Python numerical and
scientific libraries NumPy and SciPy
• Numpy
• NumPy is a library for the Python programming language, adding support for large,
multi-dimensional arrays and matrices, along with a large collection of high-level
mathematical functions to operate on these arrays.
•
• NumPy is a general-purpose array-processing package. It provides a high-
performance multidimensional array object, and tools for working with these arrays.
•
• It is the fundamental package for scientific computing with Python. It contains various
features including these important ones:
• A powerful N-dimensional array object
• Pandas
• Pandas is an open-source Python Library providing high-performance data manipulation and analysis
tool using its powerful data structures. The name Pandas is derived from the word Panel Data – an
Econometrics from Multidimensional data.
• Key Features of Pandas
• Fast and efficient DataFrame object with default and customized indexing.
• Tools for loading data into in-memory data objects from different file formats.
• Data alignment and integrated handling of missing data.
• Reshaping and pivoting of date sets.
• Label-based slicing, indexing and subsetting of large data sets.
• Columns from a data structure can be deleted or inserted.
• Group by data for aggregation and transformations.
• High performance merging and joining of data.
• Time Series functionality.
GUI
• Tkinter
• Python offers multiple options for developing GUI (Graphical User Interface). Out of all
the GUI methods, tkinter is most commonly used method. It is a standard Python
interface to the Tk GUI toolkit shipped with Python. Python with tkinter outputs the
fastest and easiest way to create the GUI applications.
WORKING OF THE PROPOSED SYSTEM
CONTINUES
HOW A COMPUTER READ AN IMAGE
Size of the Image will be – B x A x 3
WHY CONVOLUTIONAL NEURAL
NETWORKS ?
In Case of CNN the neuron in a layer will only be connected to a small region of the layer before it, instead
of all of the neurons in a fully-connected manner.
WHAT IS CONVOLUTIONAL NEURAL
NETWORKS ?
• In machine learning, a convolutional neural network(CNN, or ConvNet) is a class of
deep, feed-forward artificial neural networks that has successfully been applied to
analyzing visual imagery.
HOW CNN WORKS ?
Convolutional Neural Networks have
following layers:
 Convolution
 ReLU Layer
 Pooling
 Fully Connected
TRICKIER CASE
Here, We will have some problems, because X and O images won’t always have the same images.
There can be certain deformations. Consider the diagrams shown below:
HOW CNN WORKS ?
HOW CNN WORKS ?
A computer understands an image using numbers at
each pixels.
In our example, we have considered that a black pixel
will have value 1 and white pixel will have -1 value.
HOW CNN WORKS ?
Using normal techniques, computers compare these images as:
HOW CNN WORKS ?
CNN compares the images piece by piece. The pieces that it looks for are called features.
By finding rough feature matches, in roughly the same position in two images ,CNN gets a lot
better at seeing similarity than whole-image matching schemes.
HOW CNN WORKS ?
We will be taking three features or filters, as shown below:
HOW CNN WORKS ?
These are small pieces of the bigger
image. We choose a feature and put it
on the input image, if it matches then
the image is classified correctly.
CONVOLUTION LAYER
Steps Involved in Convolution Layer
Here we will more the feature/filter to every possible position on the images.
• Step - 1 : Line up the feature and the image.
• Step - 2 : Multiply each image pixel by the corresponding feature pixel.
MULTIPLYING THE CORRESPONDING PIXEL VALUES
MULTIPLYING THE CORRESPONDING PIXEL VALUES
STEPS INVOLVED IN CONVOLUTION
LAYER
Here we will more the feature/filter to every possible position on the images.
• Step - 1 : Line up the feature and the image patch ( by default image patch size is
taken of 9 pixels ).
• Step - 2 : Multiply each image pixel by the corresponding feature pixel.
• Step - 3 : Add them up
• Step - 4 : Divide by total number of pixels in the feature.
ADDING AND DIVIDING BY THE TOTAL NUMBER OF PIXELS
CREATING A MAP TO PUT THE VALUE OF THE FILTER
Now to keep track of where that feature was, we create a map and put the value of the filter at that
place
SLIDING THE FILTER THROUGHOUT
THE IMAGE
Now, using the same feature and move it to another location and perform the filtering again.
CONVOLUTION LAYER
Now we will put the value of the filter at that position
CONVOLUTION LAYER OUTPUT
Similarly, we will move the feature to every other positions of the image and will see how the
feature matches that area. Finally we will get an output as:
CONVOLUTION LAYER OUTPUT
RELU LAYER
 In this layer we remove every negative values from the filtered images and replaces it with
zero’s
 This is done to avoid the values from summing up to zero
Rectified Linear Unit (ReLU) transform function only activates a node.
REMOVING THE NEGATIVE VALUES
REMOVING THE NEGATIVE VALUES
OUTPUT FOR OUR FEATURE
OUTPUT FOR ALL FEATURES
POOLING LAYER
In this layer we shrink the image stack into a smaller size steps :
1. Pick a window size (usually 2 or 3).
2. Pick a stride (usually 2).
3. Walk you window across your filtered images.
4. From each window, take the maximum value.
Let’s perform pooling with a window size 2 and a stride 2
CALCULATING THE MAXIMUM VALUE IN EACH WINDOW
Let’s start with our first filtered image
In our first window the maximum or highest value is 1, so we track and move the window two
strides
MOVING THE WINDOW ACROSS THE ENTIRE IMAGE
OUTPUT AFTER PASSING THROUGH POOLING LAYER
STACKING UP THE LAYERS
STACKING UP THE LAYERS
FULLY CONNECTED LAYER
This is the final layer where the actual classification happens
Here we take our filtered and shrinked images and put them into a single list
OUTPUT
When we feed in, ‘X’ and ‘O’. Then there will be some element in the vector that will be high.
Consider the image below, as you can see for ‘X’ there are different elements that are high and similarly,
for ‘O’ we have different elements that are high.
PREDICTION
Consider the below list of a new input image:
COMPARING THE INPUT VECTOR
WITH X
COMPARING THE INPUT VECTOR
WITH O
RESULT
The input images is classified as ‘X’
THANK
YOU

Más contenido relacionado

La actualidad más candente

Facial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachFacial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachAshwinRachha
 
Unsupervised learning
Unsupervised learningUnsupervised learning
Unsupervised learningamalalhait
 
Machine Learning Overview
Machine Learning OverviewMachine Learning Overview
Machine Learning OverviewMykhailo Koval
 
15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learning15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learningAnil Yadav
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural networkIndira Nayak
 
Generative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variantsGenerative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variantsananth
 
FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...
FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...
FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...csandit
 
Deep learning summary
Deep learning summaryDeep learning summary
Deep learning summaryankit_ppt
 
A neural ada boost based facial expression recogniton System
A neural ada boost based facial expression recogniton SystemA neural ada boost based facial expression recogniton System
A neural ada boost based facial expression recogniton SystemInternational Islamic University
 
Foundations: Artificial Neural Networks
Foundations: Artificial Neural NetworksFoundations: Artificial Neural Networks
Foundations: Artificial Neural Networksananth
 
Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models ananth
 
Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)
Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)
Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)Ontico
 
Comparison of Learning Algorithms for Handwritten Digit Recognition
Comparison of Learning Algorithms for Handwritten Digit RecognitionComparison of Learning Algorithms for Handwritten Digit Recognition
Comparison of Learning Algorithms for Handwritten Digit RecognitionSafaa Alnabulsi
 
Facial Emoji Recognition
Facial Emoji RecognitionFacial Emoji Recognition
Facial Emoji Recognitionijtsrd
 
Introduction to machine learning and model building using linear regression
Introduction to machine learning and model building using linear regressionIntroduction to machine learning and model building using linear regression
Introduction to machine learning and model building using linear regressionGirish Gore
 
Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning Usama Fayyaz
 

La actualidad más candente (20)

Facial recognition
Facial recognitionFacial recognition
Facial recognition
 
Facial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approachFacial Emotion Recognition: A Deep Learning approach
Facial Emotion Recognition: A Deep Learning approach
 
Unsupervised learning
Unsupervised learningUnsupervised learning
Unsupervised learning
 
Machine Learning Overview
Machine Learning OverviewMachine Learning Overview
Machine Learning Overview
 
15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learning15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learning
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural network
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Generative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variantsGenerative Adversarial Networks : Basic architecture and variants
Generative Adversarial Networks : Basic architecture and variants
 
FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...
FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...
FACE RECOGNITION USING PRINCIPAL COMPONENT ANALYSIS WITH MEDIAN FOR NORMALIZA...
 
Deep learning summary
Deep learning summaryDeep learning summary
Deep learning summary
 
EMOTION DETECTION USING AI
EMOTION DETECTION USING AIEMOTION DETECTION USING AI
EMOTION DETECTION USING AI
 
A neural ada boost based facial expression recogniton System
A neural ada boost based facial expression recogniton SystemA neural ada boost based facial expression recogniton System
A neural ada boost based facial expression recogniton System
 
KNN
KNN KNN
KNN
 
Foundations: Artificial Neural Networks
Foundations: Artificial Neural NetworksFoundations: Artificial Neural Networks
Foundations: Artificial Neural Networks
 
Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models
 
Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)
Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)
Face Recognition: From Scratch To Hatch / Эдуард Тянтов (Mail.ru Group)
 
Comparison of Learning Algorithms for Handwritten Digit Recognition
Comparison of Learning Algorithms for Handwritten Digit RecognitionComparison of Learning Algorithms for Handwritten Digit Recognition
Comparison of Learning Algorithms for Handwritten Digit Recognition
 
Facial Emoji Recognition
Facial Emoji RecognitionFacial Emoji Recognition
Facial Emoji Recognition
 
Introduction to machine learning and model building using linear regression
Introduction to machine learning and model building using linear regressionIntroduction to machine learning and model building using linear regression
Introduction to machine learning and model building using linear regression
 
Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning Supervised learning and Unsupervised learning
Supervised learning and Unsupervised learning
 

Similar a Automatic Attendace using convolutional neural network Face Recognition

Build a simple image recognition system with tensor flow
Build a simple image recognition system with tensor flowBuild a simple image recognition system with tensor flow
Build a simple image recognition system with tensor flowDebasisMohanty37
 
Top 10 deep learning algorithms you should know in
Top 10 deep learning algorithms you should know inTop 10 deep learning algorithms you should know in
Top 10 deep learning algorithms you should know inAmanKumarSingh97
 
Neural networks and deep learning
Neural networks and deep learningNeural networks and deep learning
Neural networks and deep learningRADO7900
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Amr Rashed
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning TutorialAmr Rashed
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learningAmr Rashed
 
Convolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsKasun Chinthaka Piyarathna
 
11_Saloni Malhotra_SummerTraining_PPT.pptx
11_Saloni Malhotra_SummerTraining_PPT.pptx11_Saloni Malhotra_SummerTraining_PPT.pptx
11_Saloni Malhotra_SummerTraining_PPT.pptxSaloniMalhotra23
 
A Neural Network that Understands Handwriting
A Neural Network that Understands HandwritingA Neural Network that Understands Handwriting
A Neural Network that Understands HandwritingShivam Sawhney
 
softcomputing.pptx
softcomputing.pptxsoftcomputing.pptx
softcomputing.pptxKaviya452563
 
Facial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceFacial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceTakrim Ul Islam Laskar
 
Deep learning from a novice perspective
Deep learning from a novice perspectiveDeep learning from a novice perspective
Deep learning from a novice perspectiveAnirban Santara
 
introduction to deeplearning
introduction to deeplearningintroduction to deeplearning
introduction to deeplearningEyad Alshami
 
Cognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from MicrosoftCognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from MicrosoftŁukasz Grala
 

Similar a Automatic Attendace using convolutional neural network Face Recognition (20)

Build a simple image recognition system with tensor flow
Build a simple image recognition system with tensor flowBuild a simple image recognition system with tensor flow
Build a simple image recognition system with tensor flow
 
Top 10 deep learning algorithms you should know in
Top 10 deep learning algorithms you should know inTop 10 deep learning algorithms you should know in
Top 10 deep learning algorithms you should know in
 
Neural networks and deep learning
Neural networks and deep learningNeural networks and deep learning
Neural networks and deep learning
 
Deep learning tutorial 9/2019
Deep learning tutorial 9/2019Deep learning tutorial 9/2019
Deep learning tutorial 9/2019
 
Deep Learning Tutorial
Deep Learning TutorialDeep Learning Tutorial
Deep Learning Tutorial
 
Introduction to deep learning
Introduction to deep learningIntroduction to deep learning
Introduction to deep learning
 
Cnn
CnnCnn
Cnn
 
Convolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its Applications
 
DL.pdf
DL.pdfDL.pdf
DL.pdf
 
11_Saloni Malhotra_SummerTraining_PPT.pptx
11_Saloni Malhotra_SummerTraining_PPT.pptx11_Saloni Malhotra_SummerTraining_PPT.pptx
11_Saloni Malhotra_SummerTraining_PPT.pptx
 
A Neural Network that Understands Handwriting
A Neural Network that Understands HandwritingA Neural Network that Understands Handwriting
A Neural Network that Understands Handwriting
 
Image captioning
Image captioningImage captioning
Image captioning
 
Deep learning
Deep learningDeep learning
Deep learning
 
softcomputing.pptx
softcomputing.pptxsoftcomputing.pptx
softcomputing.pptx
 
Facial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceFacial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional Face
 
Deep learning from a novice perspective
Deep learning from a novice perspectiveDeep learning from a novice perspective
Deep learning from a novice perspective
 
introduction to deeplearning
introduction to deeplearningintroduction to deeplearning
introduction to deeplearning
 
Cognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from MicrosoftCognitive Toolkit - Deep Learning framework from Microsoft
Cognitive Toolkit - Deep Learning framework from Microsoft
 
Deep Learning Demystified
Deep Learning DemystifiedDeep Learning Demystified
Deep Learning Demystified
 
Deep learning
Deep learning Deep learning
Deep learning
 

Último

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Último (20)

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Automatic Attendace using convolutional neural network Face Recognition

  • 1. Automatic Attendance System using Face Recognition P R E S E N T E D BY : VAT S A L B O R A D H A R A
  • 2. WHAT WE USE • TensorFlow • TensorFlow is a free and open-source software library for dataflow and differentiable programming across a range of tasks. It is a symbolic math library, and is also used for machine learning applications such as neural networks. • TensorFlow is Google Brain's second-generation system
  • 3. • Keras • Keras is an open-source neural-network library written in Python. It is capable of running on top of TensorFlow, Microsoft Cognitive Toolkit, Theano, or PlaidML. Designed to enable fast experimentation with deep neural networks. • In 2017, Google's TensorFlow team decided to support Keras in TensorFlow's core library. Chollet explained that Keras was conceived to be an interface rather than a standalone machine-learning framework. It offers a higher-level, more intuitive set of abstractions that make it easy to develop deep learning models regardless of the computational backend used.
  • 4. • Open CV • OpenCV is Open Source Computer Vision Library is an open source computer vision and machine learning software library. • OpenCV is a library of programming functions mainly aimed at real-time computer vision. Originally developed by Intel.
  • 5. DEEP LEARNING • Deep learning is an artificial intelligence function that imitates the workings of the human brain in processing data and creating patterns for use in decision making. Deep learning is a subset of machine learning in artificial intelligence (AI) that has networks capable of learning unsupervised from data that is unstructured or unlabeled. Also known as deep neural learning or deep neural network. • use a cascade of multiple layers of nonlinear processing units for feature extraction and transformation. Each successive layer uses the output from the previous layer as input. • learn in supervised (e.g., classification) and/or unsupervised (e.g., pattern analysis) manners. • learn multiple levels of representations that correspond to different levels of abstraction; the levels form a hierarchy of concepts.
  • 6. NEURAL NETWORKS AND DEEP LEARNING • A deep neural network (DNN) is an artificial neural network (ANN) with multiple layers between the input and output layers. ... Each mathematical manipulation as such is considered a layer, and complex DNN have many layers, hence the name "deep" networks.
  • 7. CONT… • Artificial neural networks (ANNs) or connectionist systems are computing systems inspired by the biological neural networks that constitute animal brains. Such systems learn (progressively improve their ability) to do tasks by considering examples, generally without task-specific programming. For example, in image recognition, they might learn to identify images that contain cats by analyzing example images that have been manually labeled as "cat" or "no cat" and using the analytic results to identify cats in other images. They have found most use in applications difficult to express with a traditional computer algorithm using rule-based programming. • An ANN is based on a collection of connected units called artificial neurons, (analogous to biological neurons in brain). Each connection (synapse) between neurons can transmit a signal to another neuron. The receiving (postsynaptic) neuron can process the signal(s) and then signal downstream neurons connected to it. Neurons may have state, generally represented by real numbers, typically between 0 and 1. Neurons and synapses may also have a weight that varies as learning proceeds, which can increase or decrease the strength of the signal that it sends downstream. • Typically, neurons are organized in layers. Different layers may perform different kinds of transformations on their inputs. Signals travel from the first (input), to the last (output) layer, possibly after traversing the layers multiple times. • The original goal of the neural network approach was to solve problems in the same way that a human brain would. Over time, attention focused on matching specific mental abilities, leading to deviations from biology such as backpropagation, or passing information in the reverse direction and adjusting the network to reflect that information. • Neural networks have been used on a variety of tasks, including computer vision, speech recognition, machine translation, social network filtering, playing board and video games and medical diagnosis.
  • 8. LIBRARY USE • scikit-learn • Scikit-learn is a free software machine learning library for the Python programming language. It features various classification, regression and clustering algorithms including support vector machines, random forests, gradient boosting, k- means and DBSCAN, and is designed to interoperate with the Python numerical and scientific libraries NumPy and SciPy
  • 9. • Numpy • NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. • • NumPy is a general-purpose array-processing package. It provides a high- performance multidimensional array object, and tools for working with these arrays. • • It is the fundamental package for scientific computing with Python. It contains various features including these important ones: • A powerful N-dimensional array object
  • 10. • Pandas • Pandas is an open-source Python Library providing high-performance data manipulation and analysis tool using its powerful data structures. The name Pandas is derived from the word Panel Data – an Econometrics from Multidimensional data. • Key Features of Pandas • Fast and efficient DataFrame object with default and customized indexing. • Tools for loading data into in-memory data objects from different file formats. • Data alignment and integrated handling of missing data. • Reshaping and pivoting of date sets. • Label-based slicing, indexing and subsetting of large data sets. • Columns from a data structure can be deleted or inserted. • Group by data for aggregation and transformations. • High performance merging and joining of data. • Time Series functionality.
  • 11. GUI • Tkinter • Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter outputs the fastest and easiest way to create the GUI applications.
  • 12. WORKING OF THE PROPOSED SYSTEM
  • 14. HOW A COMPUTER READ AN IMAGE Size of the Image will be – B x A x 3
  • 15. WHY CONVOLUTIONAL NEURAL NETWORKS ? In Case of CNN the neuron in a layer will only be connected to a small region of the layer before it, instead of all of the neurons in a fully-connected manner.
  • 16. WHAT IS CONVOLUTIONAL NEURAL NETWORKS ? • In machine learning, a convolutional neural network(CNN, or ConvNet) is a class of deep, feed-forward artificial neural networks that has successfully been applied to analyzing visual imagery.
  • 17. HOW CNN WORKS ? Convolutional Neural Networks have following layers:  Convolution  ReLU Layer  Pooling  Fully Connected
  • 18. TRICKIER CASE Here, We will have some problems, because X and O images won’t always have the same images. There can be certain deformations. Consider the diagrams shown below:
  • 20. HOW CNN WORKS ? A computer understands an image using numbers at each pixels. In our example, we have considered that a black pixel will have value 1 and white pixel will have -1 value.
  • 21. HOW CNN WORKS ? Using normal techniques, computers compare these images as:
  • 22. HOW CNN WORKS ? CNN compares the images piece by piece. The pieces that it looks for are called features. By finding rough feature matches, in roughly the same position in two images ,CNN gets a lot better at seeing similarity than whole-image matching schemes.
  • 23. HOW CNN WORKS ? We will be taking three features or filters, as shown below:
  • 24. HOW CNN WORKS ? These are small pieces of the bigger image. We choose a feature and put it on the input image, if it matches then the image is classified correctly.
  • 25. CONVOLUTION LAYER Steps Involved in Convolution Layer Here we will more the feature/filter to every possible position on the images. • Step - 1 : Line up the feature and the image. • Step - 2 : Multiply each image pixel by the corresponding feature pixel.
  • 28. STEPS INVOLVED IN CONVOLUTION LAYER Here we will more the feature/filter to every possible position on the images. • Step - 1 : Line up the feature and the image patch ( by default image patch size is taken of 9 pixels ). • Step - 2 : Multiply each image pixel by the corresponding feature pixel. • Step - 3 : Add them up • Step - 4 : Divide by total number of pixels in the feature.
  • 29. ADDING AND DIVIDING BY THE TOTAL NUMBER OF PIXELS
  • 30. CREATING A MAP TO PUT THE VALUE OF THE FILTER Now to keep track of where that feature was, we create a map and put the value of the filter at that place
  • 31. SLIDING THE FILTER THROUGHOUT THE IMAGE Now, using the same feature and move it to another location and perform the filtering again.
  • 32. CONVOLUTION LAYER Now we will put the value of the filter at that position
  • 33. CONVOLUTION LAYER OUTPUT Similarly, we will move the feature to every other positions of the image and will see how the feature matches that area. Finally we will get an output as:
  • 35. RELU LAYER  In this layer we remove every negative values from the filtered images and replaces it with zero’s  This is done to avoid the values from summing up to zero Rectified Linear Unit (ReLU) transform function only activates a node.
  • 38. OUTPUT FOR OUR FEATURE
  • 39. OUTPUT FOR ALL FEATURES
  • 40. POOLING LAYER In this layer we shrink the image stack into a smaller size steps : 1. Pick a window size (usually 2 or 3). 2. Pick a stride (usually 2). 3. Walk you window across your filtered images. 4. From each window, take the maximum value. Let’s perform pooling with a window size 2 and a stride 2
  • 41. CALCULATING THE MAXIMUM VALUE IN EACH WINDOW Let’s start with our first filtered image In our first window the maximum or highest value is 1, so we track and move the window two strides
  • 42. MOVING THE WINDOW ACROSS THE ENTIRE IMAGE
  • 43. OUTPUT AFTER PASSING THROUGH POOLING LAYER
  • 44. STACKING UP THE LAYERS
  • 45. STACKING UP THE LAYERS
  • 46. FULLY CONNECTED LAYER This is the final layer where the actual classification happens Here we take our filtered and shrinked images and put them into a single list
  • 47. OUTPUT When we feed in, ‘X’ and ‘O’. Then there will be some element in the vector that will be high. Consider the image below, as you can see for ‘X’ there are different elements that are high and similarly, for ‘O’ we have different elements that are high.
  • 48. PREDICTION Consider the below list of a new input image:
  • 49. COMPARING THE INPUT VECTOR WITH X
  • 50. COMPARING THE INPUT VECTOR WITH O
  • 51. RESULT The input images is classified as ‘X’
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.