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.
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.
The dataset used can be downloaded here - Click to Download
This dataset consists of 4095 images belonging to two classes:
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 requirements.txt
See here
$ git clone https://github.com/chandrikadeb7/Face-Mask-Detection.git
$ mkvirtualenv test
$ pip3 install -r requirements.txt
$ python3 train_mask_detector.py --dataset dataset
$ python3 detect_mask_image.py --image images/pic1.jpeg
$ python3 detect_mask_video.py
tensorflow-gpu==2.0.0
Face Mask Detector webapp using Tensorflow & Streamlit
command
$ streamlit run app.py
Upload Images
Results
Feel free to mail me for any doubts/query chandrikadeb7@gmail.com
Feel free to file a new issue with a respective title and description on the the Face-Mask-Detection repository. If you already found a solution to your problem, I would love to review your pull request!
Awarded Runners Up position in Amdocs Innovation India ICE Project Fair
Selected in Devscript Winter Of Code
Selected in Script Winter Of Code
Seleted in Student Code-in
Made with by Chandrika Deb
You can find our Code of Conduct here.
You are allowed to cite any part of the code or our dataset. You can use it in your Research Work or Project. Remember to provide credit to the Maintainer Chandrika Deb by mentioning a link to this repository and her GitHub Profile.
Follow this format:
MIT © Chandrika Deb
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。