FACE RECOGNITION USING
RASPBERRY PI
Mudit Joshi (2K13/IT/050)
Hitesh Bokolia
(2K13/IT/038)
Deepak Yadav
(2K13/IT/030)
CONTENTS
Introduction
Problem Definition
Proposed Solution
Project Description
Project Planning
Hardware Requirements
Software Requirements
The Program
Challenges during execution
Conclusion
Future Work
INTRODUCTION
The human face plays an important role in our social interaction, conveying people’s identity. Using
the human face as a key to security, biometric face recognition technology has received significant
attention in the past several years due to its potential for a wide variety of applications in both law
enforcement and non-law enforcement.
As compared with other biometrics systems using fingerprint/palmprint and iris, face recognition has
distinct advantages because of its non-contact process. Face images can be captured from a distance
without touching the person being identified, and the identification does not require interacting with
the person. In addition, face recognition serves the crime deterrent purpose because face images that
have been recorded and archived can later help identify a person.
INTRODUCTION: USES
Office
Security
Facial recognition used
as a security measure to
keep a check on the
office workers.
Criminal
Identification
Facial Recognition can
be used to detect and
locate criminals by the
law enforcements.
Personal
Uses
Facial Recognition can
be used to protect our
belongings from our
home to our safes.
PROBLEM DEFINITION
To provide a stable and cost effective system that can
be used for facial recognition on a commercial basis at
different levels of security.
PROPOSED SOLUTION
To provide to the above stated problem, we propose to use raspberry
pi as cost effective but efficient solution for facial recognition.
Raspberry pi will be accompanied by a several hardware and software
components to such as python(programming language) and a
webcam to help get input and detect faces.
PROJECT DESCRIPTION
The basic idea was to
develop a cost
effective but efficient
system for facial
recognition
We have used
raspberry pi as the
processing unit for
the facial recognition
system
Linux was used as the
operating system with
python as the
programming
language for the facial
recognition system
source code.
A web camera was
used to take facial
image as input for the
system
A website was
developed as the
output to the system
Following are the details of the project:
PROJECT PLANNING: GANTT
CHART
HARDWARE REQUIREMENTS
Raspberry pi: It will be used as
processing machine for the openCV
Webcam: Used to capture image
Keyboard: to input code data and
to write code
HARDWARE REQUIREMENTS:
RASPBERRY PI
SOFTWARE REQUIREMENTS
The raspberry pi needed to be installed with python 2.7 and OpenCV 2.4 to process the image.
The Opencv contains the necessary classes for eigenvalue face recognition and the python IDE can be used
for implementing the embedded code
The webcam software that we needed to install for the raspberry pi was fswebcam. It is a free and open
source software that downloads and installs the necessary drivers for webcam to be operated successfully on
a linux machine.
Certain libraries were needed to be downloaded and installed separately for the system to function properly
THE PROGRAM
The program is written in python with opencv embedded.
Python was chosen for it’s ease of embedding opencv as well as it’s
IDE being made available for the raspberry pi( the device for
processing data).
The code has 3 major parts:
Capture_positives.py: This file contains the code to capture and detect a face . Once that is done the face is cropped
out , the image desaturated and saved to a directory named positives
Train.py: this code makes use of the captured images to train the data into an xml file and create 3 further images ,
namely- mean, positive and negative(based on lightning of the pixel).
Box.py: This portion of code loads the training data and tries to detect and further recognize a face
THE CHALLENGES
As the number of positive outcomes is limited by the number of photos and the lightning effects at the time of photo capture the photo
must be captured in all possible lightning condition with varying facial expression
For better recognition we have added the face data from AT&T as negative for recognition. This provides as the basis for negating an
image
The use of a display screen was limited by its high cost, a more economical alternative is still being searched and could be
incorporated in next build of the system.
We tried to implement whatsapp/telegram messaging services within the setup. However, although we were able to send messages but the
encryption of the applications forced us to verify the mobile number via sms each and every time we logged into the system.
CHALLENGES:
WHATSAPP/TELEGRAM
AFTER RECOGNITION
After the face is recognized the
captured image is displayed in a
window name “Welcome”.
This then further reroutes to a site
where we have collected
experiences in making the project
and displayed it’s working.
CONCLUSION
We were able to successfully implement a robust facial recognition
system that can be used as a cost effective measure to replace
fingerprint/palmprint recognition.
We were able to transmit messages using telegram via the raspberry
pi however this method could not be incorporated within the system
due to the encryption of the servers of WhatsApp and telegram which
asked for a sms/otp every time we logged in which resulted in
blocking of the number from WhatsApp.
For immediate future use we would like to attach a display along with
the raspberry pi and find a way to keep the cost down.
FUTURE WORK
The group is looking on to the future application of the build project with
particular interest in the area of biometric security of different devices like
Smartphone or college labs. Discussion are regularly being held with our
mentor and various other concerned officials of college administration
department. An active display screen is a sure feature on the next iteration
of the build system and higher accuracy in facial recognition with
optimizing the response time is also discussed with the mentor.
REFERENCES
http://www.Wikipedia.org
http://www.nec.com/en/global/solutions/biometrics/technologies/face_re
cognition.html
https://www.raspberrypi.org
https://www.python.org
https://www.elinux.org
https://www.raspbian.org/RaspbianELinux
https://reference.wolfram.com/language/tutorial/EigenvaluesAndEigenvect
ors.html
https://learn.adafruit.com/raspberry-pi-face-recognition-treasure-
box/overview

Minor on Face Recognition System using Raspberry Pi

  • 1.
    FACE RECOGNITION USING RASPBERRYPI Mudit Joshi (2K13/IT/050) Hitesh Bokolia (2K13/IT/038) Deepak Yadav (2K13/IT/030)
  • 2.
    CONTENTS Introduction Problem Definition Proposed Solution ProjectDescription Project Planning Hardware Requirements Software Requirements The Program Challenges during execution Conclusion Future Work
  • 3.
    INTRODUCTION The human faceplays an important role in our social interaction, conveying people’s identity. Using the human face as a key to security, biometric face recognition technology has received significant attention in the past several years due to its potential for a wide variety of applications in both law enforcement and non-law enforcement. As compared with other biometrics systems using fingerprint/palmprint and iris, face recognition has distinct advantages because of its non-contact process. Face images can be captured from a distance without touching the person being identified, and the identification does not require interacting with the person. In addition, face recognition serves the crime deterrent purpose because face images that have been recorded and archived can later help identify a person.
  • 4.
    INTRODUCTION: USES Office Security Facial recognitionused as a security measure to keep a check on the office workers. Criminal Identification Facial Recognition can be used to detect and locate criminals by the law enforcements. Personal Uses Facial Recognition can be used to protect our belongings from our home to our safes.
  • 5.
    PROBLEM DEFINITION To providea stable and cost effective system that can be used for facial recognition on a commercial basis at different levels of security.
  • 6.
    PROPOSED SOLUTION To provideto the above stated problem, we propose to use raspberry pi as cost effective but efficient solution for facial recognition. Raspberry pi will be accompanied by a several hardware and software components to such as python(programming language) and a webcam to help get input and detect faces.
  • 7.
    PROJECT DESCRIPTION The basicidea was to develop a cost effective but efficient system for facial recognition We have used raspberry pi as the processing unit for the facial recognition system Linux was used as the operating system with python as the programming language for the facial recognition system source code. A web camera was used to take facial image as input for the system A website was developed as the output to the system Following are the details of the project:
  • 8.
  • 9.
    HARDWARE REQUIREMENTS Raspberry pi:It will be used as processing machine for the openCV Webcam: Used to capture image Keyboard: to input code data and to write code
  • 10.
  • 11.
    SOFTWARE REQUIREMENTS The raspberrypi needed to be installed with python 2.7 and OpenCV 2.4 to process the image. The Opencv contains the necessary classes for eigenvalue face recognition and the python IDE can be used for implementing the embedded code The webcam software that we needed to install for the raspberry pi was fswebcam. It is a free and open source software that downloads and installs the necessary drivers for webcam to be operated successfully on a linux machine. Certain libraries were needed to be downloaded and installed separately for the system to function properly
  • 12.
    THE PROGRAM The programis written in python with opencv embedded. Python was chosen for it’s ease of embedding opencv as well as it’s IDE being made available for the raspberry pi( the device for processing data). The code has 3 major parts: Capture_positives.py: This file contains the code to capture and detect a face . Once that is done the face is cropped out , the image desaturated and saved to a directory named positives Train.py: this code makes use of the captured images to train the data into an xml file and create 3 further images , namely- mean, positive and negative(based on lightning of the pixel). Box.py: This portion of code loads the training data and tries to detect and further recognize a face
  • 13.
    THE CHALLENGES As thenumber of positive outcomes is limited by the number of photos and the lightning effects at the time of photo capture the photo must be captured in all possible lightning condition with varying facial expression For better recognition we have added the face data from AT&T as negative for recognition. This provides as the basis for negating an image The use of a display screen was limited by its high cost, a more economical alternative is still being searched and could be incorporated in next build of the system. We tried to implement whatsapp/telegram messaging services within the setup. However, although we were able to send messages but the encryption of the applications forced us to verify the mobile number via sms each and every time we logged into the system.
  • 14.
  • 15.
    AFTER RECOGNITION After theface is recognized the captured image is displayed in a window name “Welcome”. This then further reroutes to a site where we have collected experiences in making the project and displayed it’s working.
  • 16.
    CONCLUSION We were ableto successfully implement a robust facial recognition system that can be used as a cost effective measure to replace fingerprint/palmprint recognition. We were able to transmit messages using telegram via the raspberry pi however this method could not be incorporated within the system due to the encryption of the servers of WhatsApp and telegram which asked for a sms/otp every time we logged in which resulted in blocking of the number from WhatsApp. For immediate future use we would like to attach a display along with the raspberry pi and find a way to keep the cost down.
  • 17.
    FUTURE WORK The groupis looking on to the future application of the build project with particular interest in the area of biometric security of different devices like Smartphone or college labs. Discussion are regularly being held with our mentor and various other concerned officials of college administration department. An active display screen is a sure feature on the next iteration of the build system and higher accuracy in facial recognition with optimizing the response time is also discussed with the mentor.
  • 18.