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 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:
- Bing Search API (See Python script)
- Kaggle datasets
- RMFD dataset (See here)
All the dependencies and required libraries are included in the file requirements.txt
See here
- ریپوزیتوری را کلون کنید
$ git clone https://github.com/Hoss3inf/Face-Mask-Detection.git
- به پوشه Face-Mask_Detection وارد شود
$ cd Face-Mask-Detection/
- حالا کد زیر را اجرا کنید تا کتابخانه های مورد نیاز نصب شود
$ 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
Face Mask Detector webapp using Tensorflow & Streamlit
command
$ streamlit run app.py
Upload Images
Results
Feel free to mail me for any doubts/query :email: [email protected]
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.
MIT © Chandrika Deb