An Efficient Face Mask Detector with PyTorch and Deep Learning

Authors

DOI:

https://doi.org/10.4108/eai.8-1-2021.167843

Keywords:

COVID-19, face mask, resnet, pytorch, RMFRD

Abstract

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

Download data is not yet available.

Downloads

Published

08-01-2021

How to Cite

1.
Basha CZ, Pravallika BL, Shankar EB. An Efficient Face Mask Detector with PyTorch and Deep Learning. EAI Endorsed Trans Perv Health Tech [Internet]. 2021 Jan. 8 [cited 2024 Dec. 22];7(25):e4. Available from: https://publications.eai.eu/index.php/phat/article/view/1222