In corona pandemic time, mask is a useful and safety tool for everyone. and goverment make it necessary tool for everyone and put a fine on people who do not wear it. Mask help to get you Purified air and prevent from many disease.
You can download dataset from my kaggle account from this given link.
https://www.kaggle.com/harry418/dataset-for-mask-detection
Our approach is to design a model using Transfer learning and opencv to detect masks or without masks. In our approach we used Mobilenetv2 as transfer learning. and train our model on Mobilenetv2. and we obtain approx 94.% accuracy sucessfully.
This file contain mask detector training with CNN and Transfer learning on google collab.
https://github.com/harry418/Mask-Detection/blob/master/google_collab_train.ipynb
This file contain mask detector training on spyder and this file is a another version of google_collab_training.ipynb.
https://github.com/harry418/Mask-Detection/blob/master/mask_detection_train.py
This is weight applied architecture used for future predictions.
https://github.com/harry418/Mask-Detection/blob/master/mask_model
This file is used for real time mask detection on a single image.
https://github.com/harry418/Mask-Detection/blob/master/mask_detect_img.py
This file is used for real time mask detection on webcam or any other camera.
https://github.com/harry418/Mask-Detection/blob/master/mask_detect_vid.py
Harit Yadav