Skip to content

This repository contains face mask-detection using deep learning ,Transfer learning and opencv. The model detect face and make a coloured bounding box according to mask or without_mask.

License

Notifications You must be signed in to change notification settings

harry418/Mask-Detection

Repository files navigation

Mask Detection

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.

Dataset

You can download dataset from my kaggle account from this given link.

https://www.kaggle.com/harry418/dataset-for-mask-detection


Model Approach

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.

Training and Validation Graph -

Image


Sample Input -


Sample Output -


Files Description -

google_collab_training.ipynb

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

mask_detection_train.py

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

mask_model

This is weight applied architecture used for future predictions.

https://github.com/harry418/Mask-Detection/blob/master/mask_model

mask_detect_img.py

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

mask_detect_vid.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

license

Author

Harit Yadav

About

This repository contains face mask-detection using deep learning ,Transfer learning and opencv. The model detect face and make a coloured bounding box according to mask or without_mask.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published