IJCRT2107697
IJCRT2107697
Abstract
The main objective behind the facial recognition system is the computer science. In this letter, we have taken our research
certitude that every person has a unique face. As we know that every using Open CV. Reasons for using OpenCV are discussed
person has unique fingerprint, similarly every individual face have further in this paper.
unique features. Here we use features of face of an individual. We
can stored the features of the faces of many individuals and they can
be identified according to their face features. Facial testimony and 2. REASONS FOR USING OPENCV
facial recognition are difficult and challenging piece of work. For
facial recognition systems to be authentic, they must work accurately (a) Speed- OpenCV uses C/C++ library functions which provide
and precisely. The facial recognition technique captured the image the computer with machine language code and help in faster
using the camera and mapping it for comparison to the images stored execution, use of OpenCV results in more use of time and
in the database. If the captured image is matched with any of the resources in image processing and less in explaining.
stored images then it shows face matched otherwise it shows face not
matched. This paper elaborate in detail the entire process of facial
recognition system using OpenCV library. We use Haar cascading
(b) Portability- As OpenCV implements on C, therefore any
algorithm using OpenCV library for the face detection. devices which run on C can run OpenCV. It can work well with
Windows or Linux.
Keywords: Face detection, face recognition, Haar cascade, OpenCV.
(c) Cost- OpenCV is free for all because it is a BSD license so it
is free of cost.
1. INTRODUCTION
3. RELATED WORK
In the last two decades, the facial recognition system has become
one of the most important and interesting research areas. A facial
There are five basic steps involves in a facial recognition system
recognition system is a software application for certifying an
includes image capture, face detection, feature extraction,
individual and recognizing him/her with images or videos from a
comparison, and face recognition. Face recognition technology
source. Facial recognition can be done speedily and accurately
analyzes the unique shape, pattern, and positioning of facial
with the open-source platform called OpenCV. A path from a
features. Face recognition is a very complex technology and is
face and a picture database are favorite facial features. It is
largely software-based.
usually compared to biometrics such as fingerprints and eye
It holds the record for identifying the captured image. Various
investigation systems, and security systems and used in thumb
features like nose shape, eye shape, lips, skin color, skin tone,
detection systems. The OpenCV library makes programming
etc. The face recognition system first captures an image from a
easy to use. This comes up with advanced proficiencies like face
camera as input and finds the face in the image for face
detection, face tracking, facial recognition, and many more
detection. Face extraction includes obtaining the features from
methods for artificial intelligence (AI). The main advantage of
the face captured by the camera. Then it compares the features
the OpenCV library is, it is a multi-platform framework; it
with the features of images stored in the database and according
supports Windows, Mac OS, Mac OS X.
to which it gives result. If the features are matched with stored
Its challenging work includes face recognition on the lowest
image features then it identified the person otherwise not
computing cost framework such as smartphones and embedded
identified. However facial recognition system still has few
devices. For the person's testimony, facial recognition is used.
drawbacks as it cannot detect the face due to overlapping of
Everyone has unique features that do not share with another
faces or difficult recognition of two faces having the same
person.
features.
Currently, there are many devices and application which use
face detection technology to recognize and detect a face such as
Facebook. Therefore, face detection is not new in the vision of
A skin filter is applied to detect skin. The texture of the image 3.4 FACE DETECTION USING HAAR
part that is being masked is defined by the skin filter process. CASCADE
The output generates contains distinct areas of human skin.
Dilation and erosion are the techniques used to develop this kind Haar cascade makes use of the image subtraction philological
of filter. process for face detection. In this, the cascades of distinct
images of the same person are taken and recorded in the
B.2. BY HAULING OUT THE FEATURES WHICH ARE database. All the pixels in the effect of the white region are
BEING MASKED removed from all the pixels in the effect of the black region.
This technique of subtraction is performed on every image in the
During this step, very dark and very bright portions are removed cascade but all the images might not give us the optimal results.
from the image. By removing these portions, we get the most Many of the images have a lot of errors. The image with the
appropriate area covered by the skin for face detection. The minimum error is selected. The result of all the images is added
major problem in this step is the light sources at the time of together and is referred to as a weak classifier. All the weak
facial detection from the camera. Always the camera doesn't classifiers are added together to form a strong classifier.
need to be placed under the sunlight some might have been Applying the subtraction process and determining each image
placed in the average light or low light area. error is a very time and space-consuming process. Instead of
To solve this problem, the input should be in RGB format with applying it on each of the images, subtraction is applied to
good intensity in the range of 0 to 255. images one by one. If the last image is not useful it is discarded.
Haar Cascade is an algorithm for face detection where many
IJCRT2107697 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org g447
www.ijcrt.org © 2021 IJCRT | Volume 9, Issue 7 July 2021 | ISSN: 2320-2882
positive and negative images are used to train the classifier. also be used to detect dead or unconscious individuals at crime
Positive images are those images which we want to identify. scenes.
Negative Images are those images which contains useless things. Gen with 4GB of memory running Windows 10 Home. We used
Pycharm IDE and Python 3.9.1 and OpenCV 4.5.1.48 installed
on my system. The Haar Cascade data file is already provided by
the OpenCV library.
6. EXPERIMENTAL SETUP
6.1 REQUIREMENT
C. High GUI- This portion includes GUI, image and video I/O.
5. USE-CASES
8. CONCLUSIONS
This paper in detail explains the development of a facial
recognition system using OpenCV. We discussed the advantages
of using the OpenCV library in computer vision. The process of
facial recognition with the Haar Cascade algorithm can detect
and recognize the face. The facial recognition process with the
Haar Cascade and can be successfully performed at a distance of
more than 200 cm using a webcam. For future work, while the
current system is for straight faces, it can be improved to
recognize faces at different angles. Followed by the optimization
of the facial recognition process for use on a small mobile
device.