- Clone the repo
$ https://github.com/shimozuki/deteksi-masker.git
- Change your directory to the cloned repo and create a Python virtual environment named 'test'
$ mkvirtualenv test
- Now, run the following command in your Terminal/Command Prompt to install the libraries required
$ pip3 install -r requirements.txt
- 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
Feel free to mail me for any doubts/query :email: robbishimozuki@gmail.com
Made with ❤️ by Robi
MIT © Robi