Face Mask Detection System built using Deep Learning and OpenCV to detect real time face masks.
Model use concept of Transfer Learning with Pre-trained MobileNetV2 model architecture.
Model can 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 at public places to ensure that public safety guidelines are followed.
The model is potential to predicting multiple faces with or without masks at the same time.
Follow steps to use this project:
- Clone repository
git clone https://github.com/YashBorikar/Mask-Detection.git
- Change directory to clone repository
cd Mask-Detection
- Create a Python virtual environment and activate it
$ virtualenv venv
$ source venv/bin/activate # For Linux
$ venv\Scripts\activate # For Windows
- Install required libraries
pip install -r requirements.txt
Run MaskDetection.py
python MaskDetection.py
Training Accuracy: 99.89%, Training Loss: 0.21%, Testing Accuracy: 99.48%, Testing Loss: 0.91%
Model gave 99% accuracy for Face Mask Detection after training