Note: Before running the program, you must first download the dataset. Please extract the folder from the stated Google Drive folder
https://drive.google.com/drive/folders/1pvsMWvsXD6Aj6XRVAhkiTlvy0MiM-gtd?usp=sharing
- Open terminal. Go into the cloned project directory and type the following command:
$ python train_mask_detector.py --dataset dataset
- To detect face masks in an image type the following command:
$ python detect_mask_image.py --image images/pic1.jpeg
- To detect face masks in real-time video streams type the following command:
$ python detect_mask_video.py