Skip to content

micaelillos/Mask-Detection

Repository files navigation

Mask Detection



👩🏽‍💻 Mask Detection with Python!

Vision

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.

🔑 Prerequisites

All the dependencies and required libraries are included in the file requirements.txt See here

🚀  Installation

  1. Clone the repo
$ git clone https://github.com/micaelillos/Mask-Detection.git
  1. Change your directory to the cloned repo and create a Python virtual environment named 'test'
$ mkvirtualenv test
  1. Now, run the following command in your Terminal/Command Prompt to install the libraries required
$ pip3 install -r requirements.txt

💡 Working

  1. Open terminal. Go into the cloned project directory folder and type the following command:
$ python3 train_mask_detector.py --dataset dataset
  1. To detect face masks in an image type the following command:
$ python3 detect_mask_image.py --image images/pic1.jpeg
  1. To detect face masks in real-time video streams type the following command:
$ python3 detect_mask_video.py 

Features

📌 Detect mask from video

📌 Detect mask from image

📌 Detect from phone (coming soon...)

Usage Example

Input

Output

Input

Output

  • For help or questions - Get in touch - Website

About

Mask Detection deep learning model for python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages