An Approach for Face Detection and Face Recognition Using OpenCV and Face Recognition Libraries in Python (1)
An Approach for Face Detection and Face Recognition Using OpenCV and Face Recognition Libraries in Python (1)
1274
Authorized licensed use limited to: HKBK College of Engineering. Downloaded on October 07,2024 at 09:51:43 UTC from IEEE Xplore. Restrictions apply.
2023 9th International Conference on Advanced Computing and Communication Systems (ICACCS)
1275
Authorized licensed use limited to: HKBK College of Engineering. Downloaded on October 07,2024 at 09:51:43 UTC from IEEE Xplore. Restrictions apply.
2023 9th International Conference on Advanced Computing and Communication Systems (ICACCS)
recognition is well supported by the Python library. Scikit- Face detection is a computer technique that recognizes
Learn Machine Learning, which is renowned for its capacity human faces in digital images and is utilized in many different
to handle facial recognition and motion detection, is one of the applications. Face detection finds many faces in an image
most potent and effective Python modules. together with the essential facial characteristics that go with
them, including emotional state, or uses the expressions on the
B. OpenCV Library faces to identify age, gender, and emotions. Many face-
Using the OpenCV library is the most well-liked and most related technologies, such as face identification or
likely the easiest approach to recognizing faces using Python. verification, typically start with face detection. Work flow
OpenCV, which was first created in C/C++, now has Python diagram is shown in Fig. 1.
bindings. To find faces in a photograph, it employs machine
learning techniques. Faces are extremely intricate, consisting Face detection algorithms can be classified into two or
of countless minute patterns and characteristics that must more of the four categories in which these approaches are
match. The facial recognition algorithms, also known as classified. These are the classifications:
classifiers, divide the identification of the face into thousands 1) Knowledge-Based: To identify faces, this method
of manageable, bite-sized jobs. A face may have 5000 relies on a set of rules and is based on human knowledge. An
classifiers or more, and each one of them must match in order example would be that the nose, eyes, and mouth of a face
for a face to be recognized. We may have to perform millions
must all be at specific angles and distances from one another.
of calculations because each block has at least 5,000 tests, if
not more. Cascades are used by OpenCV to address this. The 2) Feature-Based: Using structural elements of the face,
OpenCV data needed to detect objects is included in a the feature-based technique locates faces. It is used to
collection of XML files called cascades. The code performs distinguish between facial and non-facial regions after being
the work for us after we initialize it with the desired cascade. trained as a classifier.
Given how frequently faces are detected, OpenCV has a 3) Template Matching: The Template Matching
plethora of algorithms for recognizing everything from heads approach locates or detects faces by correlating input photos
to hands to toes. and pre- defined or parameterized face templates. Examples
C. Face Recognition Library include theeyes, face shape, nose, and lips of a human face.
Additionally, a face model can be constructed solely from
The face recognition library contains numerous methods
edges using edge detection.
(functions) for dealing with faces in pictures, one of which is
known as face positions, which will locate the location of the 4) Appearance-Based: In order to identify face models,
face inside a certain image and we will pass the image file that theappearance-based technique uses a collection of delegate
we used in the previous line of code. training face photos. The appearance-based method
outperforms other modes of performance. In order to identify
The world’s most basic face recognition library allows us the pertinent features of face photos, appearance-based
to recognize and operate with faces from Python or the
methods typically use statistical analysis and machine
command line. The model was developed using the most
powerful facial recognition technology available from dlib, learning approaches.
and it has an accuracy of 99.38% on the labeled faces in the E. Face Alignment
wild benchmark. In addition, a simple face recognition
command line application is supplied, allowing us to perform Face alignment is crucial in the majority of face analysis
face identification on a folder of images directly from the procedures. The practice of identifying the geometric com-
command line. position of faces in digital photos and attempting to create a
canonical alignment of the face based on translation, scale,
D. Face Detection and rotation is known as face alignment. It focuses on
detecting a few key locations on human faces in photos or
videos.
There are several types of facial alignment. Several
strategies try to impose a (pre-defined) 3D model and then
change the input picture so that the landmarks on the input
face match the landmarks on the 3D model. Other, simpler
systems (such as the one described in this blog article) depend
solely on facial landmarks (especially the eye regions) to
generate a normalized rotation, translation, and scale
representation of the face. Block Diagram of Face Detection
and Recognition is shown in Fig. 2.
1276
Authorized licensed use limited to: HKBK College of Engineering. Downloaded on October 07,2024 at 09:51:43 UTC from IEEE Xplore. Restrictions apply.
2023 9th International Conference on Advanced Computing and Communication Systems (ICACCS)
F. Feature Extraction
In various pattern recognition tasks, dimension reduction
techniques have demonstrated significant benefits, and face
processing is no exception. Typically, we are able to compress
the input data, which lowers the storage requirements. Due to
less noise, which is present in the majority of natural photos,
the classification results have also improved in other
instances. One of the most used methods for dimensionality
reduction is principal component analysis. Feature extraction Fig. 3. Flow of Image Recognition and Matching
significantly reduces the amount of data while still obtaining
the optimal feature from those enormous data. Following the
face detection step, the face extraction procedure is completed
to produce accurate data that can be used to discriminate
between the faces of various people.
The technique of extracting facial feature components
from a human face photograph includes elements like the lips,
nose, and eyes. For the start of processing techniques like face
tracking, facial emotion recognition, or face recognition,
facial feature extraction is crucial. To process features like
shapes, edges, or movements in a digital picture or video, a
feature extraction procedure is used. The extraction of facial
features is a fundamental step in computerized visual
observation and human face recognition. Identifying facial
characteristics is crucial in a variety of applications, including
human-computer interaction, facial animation, and face
identification.
G. Face Recognition
Facial recognition is a method of recognizing or verifying Fig. 4. Successful Multiple Faces Recognition
an individual’s identity by utilizing their face. Face
recognition algorithms can distinguish people in photographs, Most often, the accuracy of the algorithm is used to gauge
films, and in real-time. how effective a face recognition system is. The algorithm’s
In order to identify certain, recognizable features on a capacity to identify the face input and provide the percentage
person’s face, face recognition systems employ computer of the match is how accuracy is determined. The algorithm’s
algorithms. Then, a mathematical representation of these presentation of the closest match percentage is crucial. In this
details, such as the separation between the eyes or the contour model, the algorithm takes the image of the person and detects
of the chin, is created and compared to information on other the face, and recognizes and displays the name from the
faces gathered in a face recognition database. images it has. As a result, this facial recognition technology
may be used in place of passwords to get access to computers.
The steps involved in face recognition are detection, This method has been tested on a larger database with more
alignment, feature extraction, and task recognition. Face photos and has an 80% accuracy rate. When face recognition
recognition has been implemented at border crossings, during technology becomes more widely available, public concern
Olympic Games activities, and in airports. Face recognition about unwarranted stops and searches may become less of an
1277
Authorized licensed use limited to: HKBK College of Engineering. Downloaded on October 07,2024 at 09:51:43 UTC from IEEE Xplore. Restrictions apply.
2023 9th International Conference on Advanced Computing and Communication Systems (ICACCS)
1278
Authorized licensed use limited to: HKBK College of Engineering. Downloaded on October 07,2024 at 09:51:43 UTC from IEEE Xplore. Restrictions apply.