Only on Eduzaurus

International Conference on Machine Learning and Data Engineering (icmlde 2018) 1 of 6

Download essay Need help with essay?
Need help with writing assignment?
writers online
to help you with essay
Download PDF


IoT is simply the network of interconnected things/devices which are embedded with sensors, software, network connectivity and necessary electronics that enable them to collect and exchange data making them responsive. By CASAGRAS(2008), IoT is defined as A global network infrastructure, linking physical and virtual objects through the exploitation of data capture and communication capabilities. But By Mark Patel, Jason Shangkuan, and Christopher Thomas explained in an article(2017) Adoption of the Internet of Things is proceeding more slowly than expected.During the past few years, Face Recognition has become very important to have a reliable security system which can secure our assets and property in the safest way possible. Traditional security system has a lot of problems and lackings also, sometimes they are unable to provide real-time data. Face Recognition is the most popular methods of biometric technology when compared to other biometric technologies such as fingerprint, voice recognition etc. however, it is considered to be more natural than other technologies.

In 2014 Xiang Xu, Wanquan Liu, Ling Li developed a system Low Resolution Face Recognition in Surveillance Systems that has the ability to detect and recognize known and unknown face in very low resolution. The face recognition can be summed to feature extraction from face images to get the feature vector first, and put it into a trained classifier, at last, get the class and finish the recognition task. More specifically, in our system at first, we have to take human faces, then we have to train them and lastly, we can recognize known and unknown faces where unknown faces will send via Email. You would never have to worry about the recordings because pi security system will send you an Email and the system I also user-friendly. The rest of the paper is structured as follows.

Essay due? We'll write it for you!

Any subject

Min. 3-hour delivery

Pay if satisfied

Get your price

Raspberry Pi Camera Module V2For our system, we have chosen the Raspberry Pi Camera Module V2. The Raspberry Pi Camera Module v2 is a high quality 8 megapixel Sony IMX219 image sensor custom designed add-on board for Raspberry Pi, featuring a fixed focus lens. It’s capable of 3280 x 2464 pixels static images, and also supports 1080p30, 720p60 and 640x480p90 video. It attaches to Pi by way of one of the small sockets on the board upper surface.

Programming Languages: Python Python is one of the most powerful programming languages in today’s world. Mainly, Raspberry Pi supports two languages: C++ and Python. In our system, we use Python because it is interpreted, object-oriented, high-level programming language with dynamic semantics. It is also simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance.

Software Library: OpenCV OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. It helps in Integrating Face Recognition Security System with the IoT Chowdhury International Conference on Machine Learning and Data Engineering (iCMLDE 2018) 3 of 6 real-time image processing. OpenCV is written in C++ and its primary interface is in C++. OpenCV 3. 3. 0 now comes with the very new Face Recognizer class for face recognition and in our system, we use OpenCV 3. 3. 0. 2. 4. Email Server: SMTP Simple Mail Transfer Protocol(SMTP) is a TCP/IP protocol used for sending and receiving an email which also takes care of the whole email sending process. But at first, it needs the correct SMTP settings, in particular, the right SMTP address(for instance:smtp. gmail. com:587). We use port number 587 for Raspberry Pi.


The main goal is to develop a user-friendly smart security camera using python scripts to recognize known and unknown faces which later sends email alerts for unknown faces. We divided the system architecture into different parts to show the workflow of the system.

Step 1: Raspberry Pi camera is used to take images of people for further use and these images are saved by giving specific id in dataset folder. We take 30 pictures of each person.

Step 2: After capturing images there is a pre-processing step where different operations such as image resize, grayscale conversion and image enhancement occur. Grayscale conversion is important because sometimes the color information doesn’t help us identify important edges or other features. An RGB image consists of 3 layers R, G, B and it’s a 3-dimensional matrix so when we convert an RGB picture to grayscale, we need to take the RGB values for every pixel. Face images may suffer from illumination therefore, image enhancement is important to improve the quality of face image which helps face recognition system to perform effectively and accurately.

Step 3: The main purpose of face detection is to locate a human face in an image and it is the process that can apply to stored images or images from a camera. In order to work, face detection applications use machine learning and formulas known as algorithms for detecting human faces within larger Integrating Face Recognition Security System with the IoT Chowdhury International Conference on Machine Learning and Data Engineering (iCMLDE 2018) 4 of 6 images.

These larger images might contain numerous objects which are not facing such as landscapes, buildings and other parts of humans. While the process is somewhat complex, face detection algorithms often begin by searching for human eyes. Once eyes are detected, the algorithm might then attempt to detect facial regions, including eyebrows, the mouth, nose, nostrils, and the iris.

Step 4: In this phase, we extract various facial features like as mouth, eyes, nose, eyebrows etc. from the detected face. There are three types of feature extraction methods: Generic methods, Feature template-based methods and Appearance-based methods.

Step 5: There are different types of face recognition algorithms, for example, Eigenfaces(1991), Local Binary Pattern Histograms(LBPH)(1996) and Fisherfaces(1997). Each method has a different approach to extract the image information and perform the matching with the input image. In our system we use LBPH. LBPH uses 4 parameters such as Radius, Neighbors, Grid X and Grid Y. After that, we train the algorithm and applying the LBP operation which marks the pixels of a picture by thresholding the 3-by-3 neighborhood of every pixel with the focus pixel esteem and considering the outcome as a parallel number. Then extracting the histograms which are followed by Face Recognition.

Step 6: Machine learning algorithms are often categorized as supervised or unsupervised. Supervised algorithms can apply what has been learned in the past to new data. Unsupervised algorithms can draw inferences from datasets. Machine learning is used to detect patterns in data and adjust program actions respectively.


We use Raspberry Pi 3 Model B+ as our IoT core and Raspberry Pi camera module as the system camera also, we installed OpenCV 3 for face recognition process and all scripts in our system are written in Python. The implementation of the proposed system includes the following 4 stages:

  1. We capture 30 images of each person by giving them specific id and applied face detecting process.
  2. On the second stage, We train the images by considering numeric vectors and the final values will be exported to a YML file called trainer. yml.
  3. In the third stage, we will capture a fresh face on our camera and if this person’s face trained before, our recognizer will make a prediction returning its id and confidence level of the system.
  4. In the final stage, the system will send an email if the system is unable to recognize the face.

After training the images, the system is ready to recognize faces also, if any faces are in the trained database it will show the name of the person as well as show the results with a confident label, but if it is not trained it will display unknown and free it to the unknown directory. Figure 4 shows the result of the above procedure and figure 5 is about security alert via email which is the last feature of the system.


Face recognition has great potential in improving security operatives to better carry out their duties, especially in emerging countries where this technology is not currently extensively used. In this paper, we developed a facial recognition system using a raspberry pi, which is smaller, lighter and works successfully utilizing the lower control power with a security alert message to the authorized person utilities. This system is more convenient than the pc-based face recognition system. This development system is affordable, agile, and highly secure and Raspberry Pi takes limited power and provides enough flexibility to satisfy the requirement of different people. However, there is still a lot of scope for improvement. We can also use this security system by making a required modification to the system in an area like the banking sector to provide more security to the lockers, based on their facial authentication and keep a record of account holders history of data when and who is entering the lockers.


This essay has been submitted by a student. This is not an example of the work written by our professional essay writers. You can order our professional work here.

We use cookies to offer you the best experience. By continuing to use this website, you consent to our Cookies policy.


Want to get a custom essay from scratch?

Do not miss your deadline waiting for inspiration!

Our writers will handle essay of any difficulty in no time.