Beruflich Dokumente
Kultur Dokumente
Abstract:Nowadays, identity thefts and frauds have become a change because of illness, fear, hunger etc. Facial detection
major issue in our society. To mitigate the fraudulent activities, and recognition system is cheaper, simpler and does not
it is necessary to make use of a sophisticated facial recognition cause disruption. The system has two processes - face
system. The objective of the project is to build a surveillance detection (1:1) and recognition of the detected face (1: N).
system based on facial detection and recognition technologies. In face detection we classify between face regions versus
This paper presents details on a facial detection and recognition
non-face regions where as in the recognition process we
algorithms and their implementation on Raspberry Pi device.
The algorithms performed by Open CV library functions were compare the single face image detected with multiple
modified for effective operation on the mentioned platform to images from input images. This project work uses
use it as an embedded surveillance system. To achieve greater BCM2837 processor, popularly known as Raspberry pi
accuracy and efficiency, Open CV libraries with C++, Python model. The core of the board is the above processor. It is a
computer languages were used. Training and identification were RISC processor based on ARM11. Surveillance systems
performed on an integrated device - Raspberry Pi3 B. We have with video plays a major role in many fields such as
created an advanced surveillance camera capable of detecting banking, personal security, business etc. Video surveillance
faces and, at the same time, recognizing the detected face. Face has become important for everyone starting from small
detection and facial recognition were performed with the Open
houses to huge industries and it helps fulfilling our safety
CV library. All the processing was carried out on Raspbian OS
on Raspberry Pi 3 B device. To capture pictures, we use camera aspects in many ways.
module. This ability of facial recognition can help us to improve
security systems. Surveillance means monitoring any situation from a
Keywords:Face recognition, Face detection, Raspberry Pi distance using cameras, binoculars, etc. This process is very
3 B, Open CV, Video surveillance. much necessary to enforce law by investigating or
preventing criminal activities and recognizing threats. We
will build an embedded surveillance system with Raspberry
1. Introduction Pi 3B device.
Now a days, many incidents such as robbery, stealing and
unwanted entrances occur unexpectedly. So security is
Major portion of this work is built on study of selected
needed in our daily life. People remain busy in their day to
functions used in latest surveillance systems such as the
day work but always would like to ensure safety of their
advanced algorithms to recognize human faces. After
beloved ones. Sometimes, people may forget to keep track
selecting appropriate algorithm, we develop the same with
of necessary items such as wallets, keys etc. Without these,
the help of C ++ and python programming language to use
they can’t enter home or other places they want. Traditional
the computational power of embedded minicomputer to the
security system requires a key, a security password, an
full extent. We have a camera that captures still images and
RFID card, or ID card for access. However, these security
these images goes in as an input for image processing
systems have shortcomings; for example, unauthorized
algorithms [1]. These algorithms processes images in real
people can steal the key or card leading to hazardous entry.
time to generate required information. To automate these
With this in mind, a software has to be developed that can
activities, the basic approaches of Computer Vision are
guarantee a higher level of security in a model. One of the
developed further and then applied to a real-time camera
unique features of our brain is that it can think only in
feed. The functions are present in the Open CV library
images not in words. Each one of us has a unique face and
(Open Source Computer Vision), an open source library
it is the most important part of our body. From many years,
with many algorithms to analyze and to manipulate images
we are using smart cards, tickets, PINS, RFID, keys etc.,
and video. It is totally compatible with most of the
for authentication and to get rightful access to confidential
operating systems such as Windows, Linux, Android and
areas such as ISRO, NASA, and DRDO etc. There are two
Mac OS. It also has MATLAB interface and C ++, C,
types of biometrics designed till date - physiological
Python, Java integration. The functions are fully developed
characteristics (face, fingerprint, finger geometry, hand
using Open CV libraries and necessary optimizations were
geometry, palm, iris, ear and voice) and behavioral
carried out for effective functioning on Raspberry Pi
characteristics. Sometimes your behavioral traits may
platform.
[1] K.Gopalakrishnan, V. Sathish Kumar: He used a [9] Official Raspberry site - http://www.raspberrypi.org 3.
unique and easy to implement embedded platform. The
design was built on image capturing technique based on 3. Hardware and Software Used
Raspberry Pi board. Based on the requirements of image
recognition algorithm, Raspberry Pi processing module was 3.1 Raspberry Pi
implemented for this platform. Finally, it was concluded To identify the right hardware is a vital first step for this
that the designed embedded platform is quick in processing project work. We chose a Raspberry Pi 3B model after
recognition algorithm after capturing images and making doing a lot of research and comparing micro controllers on
sure that the data stream flow is smooth between camera various aspects such as cost, processing speed and user
module and Raspberry Pi. friendliness. Unique features such as high processing
capacity, relatively lower price and adaptability to different
[2] Tony Di Cola: This work “Raspberry Pi Face programming modes stands out to be the main reasons to
Recognition in Treasure Box” is a great example on how choose this model. The device has Linux operating system
Raspberry Pi and Pi Camera with Open CV’s algorithms and has access to a lot of libraries and compatible
can be put to real time use. By using the latest version of applications. Raspberry Pi has an Ethernet port for network
Open CV software, the device can access latest and most connection and can be managed as long as we are in the
interesting algorithms on facial recognition. He also same subnet. It also has four USB sockets and an HDMI
implemented Solenoid double action lock to use lock the port that will help to look at the interface of operating
device after power off. system. It has around 40 pins to receive and send signals.
These pins can be divided in half in to 2 categories – 3V
[3] Kuldeep Soni: He developed an advanced surveillance and 5V groups. With this bifurcation, one side of the micro
system that can detect and recognize a face at the same controller has a voltage of 3V and the other side has 5V.
time. He used Open CV libraries on Raspbian OS. To There is no operation system installed in a new Raspberry
capture images, Pi Camera Board was used. With the help Pi. We have to download the operating system from official
of recognition capability along with detection he was able Raspberry website and transfer it to a SD card. Fig.1
to prove that this is a highly secured system depicts Raspberry Pi model B3 and its components. The
main foundation has Debian, Arch Linux ARM
[4] MedakTeena Ravali, Prof. Ranga Sai Komaragiri: In distributions and uses Python as the main programming
their work, Raspberry Pi board with Open CV packages language, with the support for BBC BASIC [5], and Perl.
was proposed as an alternative to DSP kits for image We developed algorithms, for face detection and
processing. In this work, the algorithm for facial recognition using Python language.
recognition was designed on PCA (Principal Component
Analysis). This system was designed on criteria such as
resource optimization, less power consumption and high
operational speed.
4. Methodology
3.2 Raspberry Pi OS
To install the operating system in Raspberry Pi, we have to Figure4 Block Diagram
download New Out of the Box Software – NOOBS. It will
help us set up Raspberry Pi. Immediately after we boot up
NOOBS, we get a selection of operating systems to choose
from and this list depends on the Raspberry Pi model
number.
Figure2List of OS Window
Figure5 Required Equipmentfor Project
Raspbian is the ‘official’ operating system of Raspberry Pi Power Supply:
device. It is similar to Linux operating system that was built The Pi needs a quality power supply (>= 2A at 5V for
for Raspberry Pi. You will see all software required to carry Model 3B or =700mA at 5V for old models). We can also
out basic tasks. It also has Office suite by Libre, an email use a 5V micro USB cable to supply power. Keep an eye on
program to send and receive emails, a browser to access the power supply, as less power will make the Pi to behave
web and other few applications to learn how to program. differently.
Camera Module:
Camera module is LM (Linear Motor) camera with USB
interfacing to the raspberry pi module. Its resolution is 25-
megapixel and has 6 Flash Lights with maximum image
transfer rate of 1080p: 30fps. Image gets transferred to
Raspberry Pi module once the camera captures image. At
first camera module captures 50 images to create a database
of train faces of the authorized person. Secondly, it take a
test face or live captured image to compare it with train
faces.
Ethernet:
Figure 3 Raspberry Pi Home Window
Volume 7, Issue 3, May – June 2018 Page 20
International Journal of Emerging Trends & Technology in Computer Science (IJETTCS)
Web Site: www.ijettcs.org Email: editor@ijettcs.org, editorijettcs@gmail.com
Volume 7, Issue 3, May - June 2018 ISSN 2278-6856
5. Face Detection
Face Detection using Haar Cascades is the algorithm we
will use for this project. In this algorithm the object based
detection happens using cascade classifiers. Cascade
classifiers are based on Haar features and this algorithm is
an optimal object detection method as mentioned by Paul
Viola, Jones Michael in their paper. In 2001, there was Figure 7 Created database
another machine learning based model where the cascade
6. Face Recognition
features are built with training on positive and negative
We will work on real time application of Principal Element
images. This machine learning model was called as ‘Rapid
Inspection using Eigen faces. As soon as we have the face
Object Detection using a Boosted Cascade of Simple
image, we compute the weight against the face images
Features’.
present in the back end database. The image that gets
This machine learning technique, the model requires a lot
processed is linearly projected to a low dimensional image
of data points (picture of human faces and pictures without
space and the difference with respect to a set of Eigen
human faces) to learn from. Based on the features extracted
vectors is weighed. If the variance (weight) is below a
from the data points provided, the model will understand
certain verge, the image gets classified as a known face.
the underlying patterns and will be able to distinguish a
Otherwise, the face gets tagged as an unknown face or not a
new image provided it. Features get designed by
face at all. We use Python code to start the webcam and
subtracting pixels count of white rectangle from pixel count
capture images. Then the program matches the given image
of black rectangle.
with set of images present in the back end system. For
A lot of features can be derived by knowing all possible
facial recognition, a similarity score gets calculated –
sizes and locations of every kernel. Calculation of pixels
similarity between the input image and every image in the
under white rectangle and that of black rectangles is a must
database. The image or face with maximum
for feature extraction. For this we use integral pictures to
similarity/nearness score shows assurance of the exact
simplify calculation of sum of pixels. It doesn't matter how
match. In the later sections of this paper, we will try and
bulky the number of pixels are, it will compress them into
understand different stages in performing facial
just four pixels. This reduction in pixel size helps the
recognition. Now, we will focus on learning more about the
algorithm to run very fast.
Eigen faces.
Among all the features designed, most of them might be
inappropriate as they won’t be able to explain the required
variance. To identify features that are useful, we analyze
each of the features on all images from database. By doing
this, we will categorize faces to positive or negative for
every feature. Apparently, there will be misclassifications
while doing this exercise. We only go with the features that
have less fault rate i.e., the features that can classify faces
and non-faces properly. The actual procedure might not be
as simple as this. Each feature is given equal weightage in
the starting and after every iteration, weights will get
changed (increased/decreased) based on the classification
of pictures. We repeat this process to calculate new fault
rates. We have to conduct multiple iterations until we reach
necessary accuracy or a minimum allowable fault rate.
Figure 8 Performing Face Recognition
Figure.9 Eigen Faces of Corresponding Training Images Figure 11 Authorized Person’s Captured Image
Set.
Conference Radioelektronika
(RADIOELEKTRONIKA), 2017.
[2] Shrutika V. Deshmukh, Prof Dr. U. A. Kshirsagar
“Face Detection and Face Recognition Using
Raspberry Pi” International Journal of Advanced
Research in Computer and Communication
EngineeringVol. 6, Issue 4, April 2017.
[3] Shrutika V. Deshmukh, Prof Dr. U. A. Kshirsagar
“Implementation of Human Face Detection System for
Door Security using Raspberry Pi” International
Journal of Innovative Research in Electrical,
Electronics, Instrumentation and Control Engineering
ISO 3297:2007 Certified Vol. 5, Issue 4, April 2017
[4] Srinivasu Batchu, S. Praveen Kumar “Driver
Figure12 Unauthorized Person’s Captured Image Drowsiness Detection to Reduce the Major Road
Accidents in Automotive Vehicles” International
Research Journal of Engineering and Technology
(IRJET) Volume: 02 Issue: 01 April-2015.
[5] M. Narender, M. Vijayalakshmi. "Raspberry Pi Based
advanced scheduled home automation system through
E-mail", 2014 IEEE International Conference on
Computational Intelligence and Computing Research,
2014.
[6] Kandla Arora “Real Time Application of Face
Recognition Concept” International Journal of Soft
Computing and Engineering (IJSCE) ISSN: 2231-
2307, Volume-2, Issue-5, November 2012.
[7] B. C. Lovell, S. Chen, T. Shan. Real-time Face
Figure 13 Setup of the Project Detection and Classification for ICCTV.. [Online].
Available:
9. Conclusion
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1
The facial recognition system designed has applications in .1.331.6676rank=1
several sophisticated automated systems and public places [8] R. Szeliski. Computer Vision: Algorithms and
such as hospitals, labs with high-tech equipment, banks etc. Applications. [Online]. Available:
This system will help in reducing the hazard of http://szeliski.org/Book/
unauthorized entry. As the system captures data of person [9] slideshare [Online] Available www.slideshare.net
faces, it will be useful in providing evidence to security [10] OpenCV. [Online].Available http://opencv.org/
department officials in the event of burglary. As the system [11] OpenCV: Face Detection using Haar Cascades
is developed on Raspberry Pi, it is smaller in size, light- [Online].Available:https://docs.opencv.org/3.2.0/d7/d8
weighted and consumes very less energy. Hence, it is more b/tutorial_py_face_detection.html
easy to use than a PC-based facial recognition system.
Also, we used open source code in designing the system AUTHORS
making it almost as a free software developed on Linux. As Dr.MunaswamyPiduguworking as a Professor and
we need the system to conduct real time face detection and Dean of Electronics and Communication Engineering
face recognition, we used programming languages C++ and Department, Institute of Aeronautical Engineering,
Python to carry out these operations efficiently. Face Hyderabad, Telangana, India. He has more than 18
detection rate is the metric we used to determine the years of teaching experience in various Engineering colleges. He
completed his Ph.D. in Electronics and Communication
efficiency of the system. Extensive study revealed that the Engineering from Jawaharlal Nehru Technological University,
system designed displayed excellent performance in terms Hyderabad. He guided many PG and UG projects. He attended
of face detection rate and the system can even to the same more than 3 international conferences and submitted 6
with poor quality images. international journals. His areas of interest are Instrumentation
and Control systems.
Acknowledgment
Thanks to Professor and DeanDr.MunaswamyPidugu, Pavan Reddy Punnam received his B.Tech. in
Electronics and Communication Engineering Department, Electrical and Electronics Engineering from Kakatiya
Institute of Aeronautical Engineering, Hyderabad, India. University, Warangal. He is currently pursuing M.Tech.
in Embedded Systems, Department of Electronics and
References Communication Engineering, Institute of Aeronautical
Engineering, Hyderabad. Control systems is his favorite area.
[1] Gabor Arva, Tomas Fryza. "Embedded video
processing on Raspberry Pi", 2017 27th International