3. Central Idea
A system for face detection and recognition based on raspberry pi with
open cv programming to control the gate.
4. Outlines
❑ Introduction
❑ Block diagram
❑ Algorithm
▪ Face detection
▪ Database
▪ Face recognition
❑ Software
❑ Hardware
❑ The system
❑ conclusion
5. Introduction
► A facial recognition system is a computer application for
automatically identifying or a verifying a person from a digital
image.
► Face detection locate face in whole frame.
► Input image is matched with database images. Authentication is
given accordingly.
► Face recognition system is mainly used for security purpose.
► We are using raspberry pi for putting our plan into effect!
7. Block diagram
camera
[Face detection]
(Haar cascade)
Person on
gate
i/
p
gate Match??
database
[Open cv + python code]
SD card memory
[Face recognition]
(Eigen faces)
yes/no
RASPBERRY PI
motor
o/p
Yes
or
no
feedback
[Door opens/close]
12. Database
create training
set and load it
Convert face
images to face
vector
Calculate mean
average face
vector
Subtract average
face vector from
each face vectors to
have normalize face
vectors
Reduce
dimensionality
of training set
Calculate Eigen
vectors
Represent each
image as linear
combination of all
‘K’ Eigen vector
Select ‘K’ best
Eigen faces
PCA ALGORITHM
14. Face recognition(even sem)
Input image
Convert it
into face
vector
Normalize
face vector
convert into
Eigen space
Get
weighted
vector
PCA ALGORITHM
Calculate “Distance” b/w
input weight vector and
all weight vectors of set
Decide a
threshold level
Decide
Distance >
threshold?
Display its
name and
“matched”
Display
Unknown
yes
no
22. The system
❑ Connections:
• Interface PI camera with
raspberry pi.
• Load database, programme and
raspbian OS in SD card and
inserted in to raspberry pi.
• Interface servo motor raspberry
pi through GPIO pins.
• Give power supply using battery
pack or mobile charger.
24. conclusion
► By face recognition system we can fulfil the purpose of
security. Detection of face is done by image processing.
Here we use Open Cv with programming language C++.
► Initially camera will capture the image and face detection
algorithm will detect the face in image. Then recognition
algorithm is applied on this detected part. In this project we
have developed a PCA based face recognition system.
25. Reference
1. https://en.wikipedia.org/wiki/Biometrics
2. https://www.cse.unr.edu/~bebis/CS790Q/Lect/Chapters_3_4.ppt
3. http://eyalarubas.com/face-detection-and-recognition.html
4. https://www.raspberrypi.org
5. https://www.raspberrypi.org/products/raspberry-pi-3-model-b/
6. https://webdocs.cs.ualberta.ca/~nray1/CMPUT466_551/ViolaJones.ppt
7. M. Turk and A. Pentland “Eigen faces for Recognition”, Journal of Cognitive Neuroscience, vol.3, no.1, pp.71-86,
1991, hard copy
8. https://en.wikipedia.org/wiki/OpenCV
9. https://www.python.org/
10. www.numpy.org/
11. https://onionesquereality.wordpress.com/2009/02/11/face-recognition-using-eigenfaces
12. https://learn.adafruit.com/raspberry-pi-face-recognition-treasure-box/overview
13. https://www.youtube.com/channel/UCsRvxZErBo0ByyWUX_aVuvg (codacus)
14. http://www.imore.com/how-get-started-using-raspberry-pi
15. http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html
16. https://www.youtube.com/watch?v=9hb0gYCv3YI
17. www.face-rec.org/databases/