In the current situation due to Covid-19, there is no proficient face mask detection applications which are presently sought after for transportation implies, thickly populated zones, private regions, enormous scope producers and different endeavors to guarantee security. Additionally, the nonappearance of enormous datasets of 'with_mask' pictures has made this assignment progressively bulky and testing.
- OpenCV
- Caffe-based face detector
- Keras
- TensorFlow
- MobileNetV2
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
- Open terminal. Go into the cloned project directory folder and type the following command:
$ python3 train_mask_detector.py --dataset dataset
- Now detect the face masks in images
$ python3 detect_mask_image.py --image images/pic1.jpeg
- Detection in real-time video streams
$ python3 detect_mask_video.py
<br>