Face Mask Detection and Classification System Using Deep Learning
Face Mask Detection and Classification System Using Deep Learning
https://doi.org/10.22214/ijraset.2022.46328
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII Aug 2022- Available at www.ijraset.com
Abstract: COVID-19 pandemic caused by novel corona virus is unendingly spreading up to now everywhere the planet. The
impact of COVID-19 has been fallen on the majority sectors of development. The health care system goes through a crisis.
several preventative measures are taken to cut back the unfold of this sickness wherever carrying a mask is most significant one
in all them. In this paper, we have a tendency to propose a system that restricts the expansion of COVID-19 by looking for people
that aren't carrying any facial mask in a very good town network wherever all the general public places area unit monitored with
television system (CCTV) cameras. While someone while not a mask is detected, the corresponding authority is educated
through the town network. A deep learning design is trained on a dataset that consists of pictures of individuals with and while
not masks collected from numerous sources. The trained design achieved ninety-eight accuracies on characteristic folks with
and while not a facial mask for antecedently unseen check knowledge. It's hoped that our study would be a useful gizmo to cut
back the unfold of this disease for several countries within the world. A mask detection dataset consists of with mask and while
not mask pictures, we have a tendency to area unit planning to use OpenCV to try to period of time face detection from a live
stream via our digital camera We will use the dataset to create a COVID-19 mask detector with pc vision exploitation Python,
OpenCV, and Tensor Flow and Kera’s. Our goal is to spot whether or not the person on image/video stream carrying a mask or
not with the assistance of pc vision and deep learning.
Keywords: knowledge visualisation, knowledge Augmentation Preprocessing Image, Classifying Mask and No Mask.
I. INTRODUCTION
The planet Health Organization (WHO) has declared the corona virus sickness 2019 (COVID-19) a deadly disease. a worldwide
coordinated effort is required to prevent the more unfold of the virus. A deadly disease is outlined as “occurring over a large
geographical region Associate in Nursing poignant an exceptionally high proportion of the population.” In 2020, the fast spreading
of COVID-19 has forced the planet Health Organization to declare COVID- nineteen as a worldwide pandemic. In 2020, the quick
spreading of Covid-19 has forced the World Health Organization to declare Covid-19 as international pandemic. This novel corona
virus was named Corona virus sickness 2019 (COVID-19) by World Health Organization in February 2020. The virus is cited as
SARS-CoV-2 and also the associated sickness is COVID-19. Corona viruses are a family of viruses that cause ill health such as
respiratory diseases or channel diseases. metastasis diseases can range from the respiratory disorder to a lot of severe diseases like
Middle East metastasis Syndrome (MERS-CoV) and Severe Acute metastasis Syndrome(SARS-CoV). The virus spreads through
shut contact and in huddled and overcrowded areas. The corona virus epidemic has given rise to a unprecedented degree of
worldwide scientific cooperation. folks area unit forced by laws to wear face masks publicly in several countries. These rules
Associate in Nursing laws were developed as an action to the exponential growth in cases and deaths in several areas.
B. Proposed System
The projected system detects whether or not someone carrying mask or not from the image or video streamed. The deep learning
algorithms used area unit OpenCV, Tensorflow, and Keras library. The caffemodel is employed to coach the neural network with
weights and parameters.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 988
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII Aug 2022- Available at www.ijraset.com
Preprocessing image: For preprocessing the image we have a tendency to like OpenCV’s blot From Image perform. This performs
the foremost necessary functions particularly mean subtraction and scaling by some issue. Data Augmentation: during this the
pictures within the dataset area unit cropped and resized for coaching the model. a lot of pictures area unit enclosed for dataset
extension. Detect mask from face: once pictures area unit being preprocessed and increased ensuing step is to create the model
generate new prediction, for this the model. Predict is employed and therefore the long run prediction is obtained. ensuing step is to
load the trained model exploitation load model that has needed parameters. the pictures area unit being classified with proportion of
carrying mask and not carrying. The video input is spilt into frames and also the prediction is completed.
B. Software Requirement
Colab
Google Chrome
IV. MODULE DESCRIPTION
DATA visualization: In this commencement, allow us to visualize the overall range of pictures within the dataset in these 2 classes.
Dataset
A. Data Augmentation
Image knowledge augmentation could be a technique that may be wont to unnaturally expand the dimensions of a coaching dataset
by making changed versions of pictures within the dataset. coaching deep learning neural network models on a lot of knowledge
may result in additional skillful models, and also the augmentation techniques will produce variations of {the pictures the
photographs} that may improve the power of the match models to generalize what they need learned to new images. The Keras deep
learning neural network library provides the potential to suit models exploitation image knowledge augmentation via the Image
knowledge Generator class..
B. Preprocessing Image
The aim of pre-processing is Associate in Nursing improvement of the image knowledge that suppresses unwanted distortions or
enhances some image options necessary for more process.
C. Construction Of Model
The construction of convolution network is troublesome therefore as an alternative we have a tendency to pre-train the ConvNet on
a awfully massive dataset exploitation Transfer Learning. the 2 structure of transfer learning area unit Fine-tuning the convent and
creating it a set feature extractor.
Fine-tuning the convNet: Instead of random data formatting, we have a tendency to initialize the network with a pre-trained
network, just like the one trained on the image dataset. the rest of the preparation is as traditional.
ConvNet as a set feature extractor: We freeze the weights for the complete network aside from the ultimate absolutely
connected layer. This last absolutely connected layer is replaced by a brand new one with random weights and solely this layer
is trained.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 989
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII Aug 2022- Available at www.ijraset.com
The on top of steps administered exploitation the loss.backward( ) and optimizer.step( ) functions and also the time go on is
additionally generated.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 990
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VIII Aug 2022- Available at www.ijraset.com
VI. CONCLUSION
To alleviate the unfold of COVID-19 pandemic, few measures area unit taken that embody carrying mask. As technology makes our
life ease therefore we've got build a mask detector and classifier which may probably assist public health care. The design used is
MobileNetV2 that act as a elementary strength. The MobileNetV2 design is most well-liked over different architectures because it
makes the model installation on the embedded systems easier. The Transfer learning is employed for fine standardization the
convolution network and so as to extract the options, it adopts weight of the total network except the ultimate absolutely connected
layer.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 991