Covid-19 Facemask Detection with Deep Learning and Computer Vision

DOI : 10.17577/IJERTCONV9IS05017

Download Full-Text PDF Cite this Publication

Text Only Version

Covid-19 Facemask Detection with Deep Learning and Computer Vision

Ms. R. Suganthalakshmi A. Hafeeza, P. Abinaya, A.Ganga Devi

AP/Department of CSE Kings College of Engineering

Punalkulam,Gandarvakkottai Taluk, Pudukottai Dist, Pin-613 303

Abstract – The corona virus COVID-19 pandemic is causing a global health crisis so the effective protection methods is wearing a face mask in public areas according to the World Health Organization (WHO). The COVID-19 pandemic forced governments across the world to impose lockdowns to prevent virus transmissions. Reports indicate that wearing facemasks while at work clearly reduces the risk of transmission. We will use the dataset to build a COVID-19 face mask detector with computer vision using Python, OpenCV, and Tensor Flow and Keras. In our proposed system we will use live video stream and finally in output it gives alert sound(buzzer) when someone not wearing mask.Our goal is to identify whether the person on image/video stream is wearing a face mask or not with the help of computer vision and deep learning.

Keywords : DeepLearning, Computer Vision, OpenCV, Tensorflow, Keras.


    The trend of wearing face masks in public is rising due to the COVID- 19 corona virus epidemic all over the world. Before Covid-19, People used to wear masks to protect their health from air pollution. While other people are self-conscious about their looks, they hide their emotions in the public to hide their faces.

    More than five million cases were infected by COVID- 19 in less than 6 months across 188 countries. The virus spreads through close contact and in crowded and overcrowded areas.

    We can tackle and predict new diseases by the help of new Technologies such as artificial intelligence, Iot, Big data, and Machine learning. In order to better understand infection rates might be decrease through our technique.

    People are forced by laws to wear face masks in public in many countries. These rules and laws were developed as an action to the exponential growth in cases and deaths in many areas. However, the process of monitoring large groups of people is becoming more difficult in public areas. So we will create a automation process for detecting the faces.

    Here we introduce a facemask detection model that is based on computer vision and deep learning. The proposed model can be integrated with Surveillance Cameras to impede the COVID-19 transmission by allowing the detection of people who are wearing masks not wearing face masks. The model is integration between deep learning and classical machine learning techniques with Open cv, Tensor flow and Keras. We will achieve the highest accuracy and consume the least time in the process of training and detection.


    1. TITLE : Face Mask Detector

      Single Shot Detector architecture is used for the object detection purpose. In this system face mask detector can be deployed in many areas like shopping malls, airports and other heavy traffic places to monitor the public and to avoid the spread of the disease by checking who is following basic rules and who is not.It takes excessive time for data loading in Google Colab Notebook. It did not allow the access of webcam which posed a hurdle in testing images and video stream.We have modeled a facemask detector using Deep learning. We are processed a system computationally efficient using MobileNetV2 which makes it easier to Extract the data sets. We use CNN architecture for better performance.We can fix it in any kind of cameras

    2. TITLE :Face detection techniques: a review,Artificial

      Human beings have not tremendous ability to identify different faces than machines, so automatic face detection system plays an important role in face recognition,head- pose estimation etc.It has some problems like face occlusion,andnon uniform illumination.We use Neural Network to detect face in the Live video stream. Tensor flow is also used in this system . In existing they use Adaboost algorithm, we are using mob net CNN Architecture model in our proposed system.We will overcome all these problems in this paper.

    3. TITLE : Multi-Stage CNN Architecture for Face Mask Detection

      This system consists of a dual-stage (CNN)architecture capable of detecting masked and unmasked faces and can be integrated with pre-installed CCTV cameras.This will help track safety violations, promote the use of face masks and ensure a safe working environment.Datasets were collected from public domain along with some data scraped from the internet.They use only pretrained datasets for detection. We can use any cameras to detect faces.It will be very useful for society and for peoples to prevent them from virus transmission. Here we use live video detection using open cv(python library)

    4. TITLE : Real time face mask recognition with alarm system using deep learning

    This process gives a precise and speedily results for facemask detection. Raspberry pi based real time face mask recognition that captures the facial image. This system uses the architectural features of VGG-16 as the foundation network for face recognition.Deep learning techniques are applied to construct a classifier that will collect image of a person wearing a face mask and no masks. Our proposed study are uses the architectural featurs of CNN as the foundation network for face detection .It shows accuracy in detecting person wearing a face mask and not wearing a face mask .This study presence a useful tool in fighting the spread of covid 19 virus .


    System design

    The major requirement for implementing this project using python programming language along with Deep learning

    ,Machine learning , Computer vision and also with python libraries. The architecture consists of Mobile Net as the backbone, it can be used for high and low computation scenarios.We are using CNN Algorithm in our proposed system.


    We have four modules

    1. Datasets Collecting : We collect no of data sets with face mask and without masks. we can get high accuracy depends on collecting the number of images .

    2. Datasets Extracting:We can extract the features using mobile net v2 of mask and no mask sets

    3. Models Training:We will train the the model using open cv,keras (python library).

    4. Facemask Detection :We can detect Pre processing image and also detect via live video . If people wear mask, it will permit them,if not then it will give the buzzer to wear mask to prevent them from virus transmission.


    • Manual Monitoring is very difficult for officers to check whether the peoples are wearing mask or not. So in our technique, We are using web cam to detect peoples faces and to prevent from virus transmission.

    • It has fast and high accuracy

    • This system can be implemented in ATMs, Banks etc

    • We can keep peoples safe from our technique.

    • It provides buzzer sound to wear mask.


    By the development of face mask detection we can detect if the person is wearing a face mask and allow their entry would be of great help to the society.The accuracy of the model will be achieved and the optimization of the model is a continuous process and So we are building a highly accurate solution. We can prevent peoples from Virus Transmission through this System.



  1. A.Kumar,A.Kaur,M.Kumar,Face detection techniques: review, Artificial intelligence review,volume.52 no.2pp.927- 928,2019.D.H.Lee,K.-L.CHEN,K.H Liou,C.Liu,andJ.Liu,Deep learning and control algorithms of direct perception for autonomous driving,2019.

  2. Guangchengwang, yumiaoMasked face recognition data sets and application National natural science foundation of china 2020

  3. Raza Ali, Saniya Adeel,Akhyar Ahmed Face Mask Detector July 2020

  4. Z.-Q. Zhao, P. Zheng, S.-t.Xu, and X. Wu, Object detection with deep learningIEEE transactions on neural networks and learning systems 2019.

  5. Amit Chavda,jasonDsouza,SumeetBadgujar Multi-Stage CNN Architecture for Face Mask Detection September 2020

  6. [6]Amrit Kumar, Bhadani,Anurag Sinha A Facemask detector using machine learning and image processing techniques November 2020 Engineering scienceAnd technology and international confernce.

  7. Sammy v. militante,Nanettev.dionisioReal time face mask recognition with alarm system using deep learning 2020 11th IEEE control and system graduate research colloquium

  8. Mohammad

    marufurmd.Motalebhossenmd.MilonislamSaifuddinmahmud An automated system to limit covid 19 using facial mask detection in smart city network 2020 IEEE international IOT

  9. Toshanlalmeenpal,Ashutoshbalakrishnan,Amitverma, Face mask detection using semantic segmentation 2019,4th international conference on 4th Internationalcomputing, communications and security(ICCCS)

  10. Wenyunsun,Yusong,Changsheng,Face spoofing detection based on local ternary label supervision in fully convolutional networks IEE transactions on information forensis and security 2020

One thought on “Covid-19 Facemask Detection with Deep Learning and Computer Vision

  1. Snehit Vaddi says:

    It would have been nice if you had mentioned the models you have used, model performance and how different is your approach from existing models/approaches.

Leave a Reply