Real-Time Facial Mask Detection using MobileNetV2
Tanmay Bhagwat
Thane, Maharashtra
- 0 Collaborators
Trained a custom MobileNetV2 model through transfer learning to monitor the live camera feed/video footage of people and classify the usage of facial masks in public places i.e. mask worn correctly/incorrectly/not worn with an accuracy of 88% ...learn more
Project status: Published/In Market
Groups
Student Developers for AI
Intel Technologies
Intel Python
Overview / Usage
The cases of coronavirus around the world are constantly on a rise and the need for social distancing and usage of mask is greater than ever. However, only a small part of the population is taking these warnings seriously and using masks in public. Though there are many mask detectors available online, they don't accurately detect masks which are worn incorrectly(like not covering the nose and so on) which is a mistake that can be seen in the public way too often. This prompted me to develop a mask detector that can detect not only if a mask is worn or not but also detect if the masks are worn correctly.
Methodology / Approach
A custom dataset was collected from friends and family through Google forms for all the 3 cases as there was not enough dataset on masks worn incorrectly online. I'd like to thank each and everyone who contributed to the dataset. Further, some images from datasets from Kaggle were also included in my dataset. There are a total of 826 images in the dataset and augmented images were generated to further enlarge the dataset.
The model was developed using pretrained mobilenetV2 and facenet models with an additional layer with dropout to achieve a validation accuracy of 95.7% validation accuracy.
Technologies Used
Python, Tensorflow, Keras, Scikit-Learn, OpenCV