An Efficient Face Mask Detector with PyTorch and Deep Learning
DOI:
https://doi.org/10.4108/eai.8-1-2021.167843Keywords:
COVID-19, face mask, resnet, pytorch, RMFRDAbstract
INTRODUCTION: The outbreak ofacoronavirus disease in 2019 (COVID-19) has created a global health epidemic that has had a major effect on the way we view our environment and our daily lives. The Covid-19 affected numbers are rising at a tremendous pace. Because of that, many countries face an economic catastrophe, recession, and much more. One thing we should do is to separate ourselves from society, remain at home, and detach ourselves from the outside world. But that's no longer a choice, people need to earn to survive, and nobody can remain indefinitely within their homes. As a precaution, people should wear masks while keeping social distance, but some ignore such things and walk around.
OBJECTIVES: To develop aFace Mask Detector with OpenCV, PyTorch, and Deep Learning that helps to detect whether or not a person wears a mask.
METHODS: A Neural Network model called ResNet is trained on the dataset. Furthermore, this work makes use of the inbuilt Face Detector after training. Finally, we predict whether or not a person is wearing a mask along with the percentage of the face covered or uncovered.
RESULTS: The validation results have been proposed to be 97% accurate when compared to applying different algorithms.
CONCLUSION: This Face Mask Detection System was found to be apt for detecting whether or not people wear masks in public places which contribute to their health and also to the health of their contacts in this COVID-19 pandemic.
Downloads
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2022 EAI Endorsed Transactions on Pervasive Health and Technology
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
This is an open access article distributed under the terms of the CC BY-NC-SA 4.0, which permits copying, redistributing, remixing, transformation, and building upon the material in any medium so long as the original work is properly cited.