👩🏽💻 Mask Detection with Python!
My goal is to make a fully functional and easy to use mask detection, I want to make an api or use tensorflowjs and implement the model in a react native app to make it availabe to use to the public.
All the dependencies and required libraries are included in the file requirements.txt
See here
- Clone the repo
$ git clone https://github.com/micaelillos/Mask-Detection.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
- To detect face masks in an image type the following command:
$ python3 detect_mask_image.py --image images/pic1.jpeg
- To detect face masks in real-time video streams type the following command:
$ python3 detect_mask_video.py
📌 Detect mask from video
📌 Detect mask from image
📌 Detect from phone (coming soon...)
- For help or questions - Get in touch - Website