<h4>Face Mask Detection system built with OpenCV, Keras/TensorFlow using Deep Learning and Computer Vision concepts in order to detect face masks in static images as well as in real-time video streams.</h4>
In the present scenario due to Covid-19, there is no efficient face mask detection applications which are now in high demand for transportation means, densely populated areas, residential districts, large-scale manufacturers and other enterprises to ensure safety. Also, the absence of large datasets of __‘with_mask’__ images has made this task more cumbersome and challenging.
-[Caffe-based face detector](https://caffe.berkeleyvision.org/)
-[Keras](https://keras.io/)
-[TensorFlow](https://www.tensorflow.org/)
-[MobileNetV2](https://arxiv.org/abs/1801.04381)
## :star: Features
Our face mask detector didn't use any morphed masked images dataset. The model is accurate, and since we used the MobileNetV2 architecture, it’s also computationally efficient and thus making it easier to deploy the model to embedded systems (Raspberry Pi, Google Coral, etc.).
This system can therefore be used in real-time applications which require face-mask detection for safety purposes due to the outbreak of Covid-19. This project can be integrated with embedded systems for application in airports, railway stations, offices, schools, and public places to ensure that public safety guidelines are followed.
## :file_folder: Dataset
The dataset used can be downloaded here - [Click to Download](https://drive.google.com/drive/folders/1XDte2DL2Mf_hw4NsmGst7QtYoU7sMBVG?usp=sharing)
This dataset consists of __3835 images__ belonging to two classes:
* __with_mask: 1916 images__
* __without_mask: 1919 images__
The images used were real images of faces wearing masks. The images were collected from the following sources:
All the dependencies and required libraries are included in the file <code>requirements.txt</code>[See here](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/requirements.txt)
Face Mask Detector webapp using Tensorflow & Streamlit
command
```
$ streamlit run app.py
```
## Images
<palign="center">
<imgsrc="Readme_images/1.PNG">
</p>
<palign="center">Upload Images</p>
<palign="center">
<imgsrc="Readme_images/2.PNG">
</p>
<palign="center">Results</p>
## :clap: And it's done!
Feel free to mail me for any doubts/query
:email: chandrikadeb7@gmail.com
## :handshake: Contribution
Feel free to **file a new issue** with a respective title and description on the the [Face-Mask-Detection](https://github.com/chandrikadeb7/Face-Mask-Detection/issues) repository. If you already found a solution to your problem, **I would love to review your pull request**!
## :heart: Owner
Made with :heart: by [Chandrika Deb](https://github.com/chandrikadeb7)