azwyane / mask-detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Real time face mask detection

(Task 4 from Computer Vison and IOT, completed in association to internship at The Sparks Foundation)

Install and run

In the root of the directory execute following commmands:

$ python3 -m venv venv
$ source venv/bin/activate
(venv)$ pip3 install -r requirements.txt

At first we are creating a virtual environment to install all requied packages to run the detector. Then, visit the option available to either run the detector in image or real time video mode.

(venv)$ python3 detect.py -h

In order to run in real time:

$ python3 detect.py --camera 0

Here, 0 is the camera device number in my device, it can by any number for you, please look into your system to identify the camera device number and supply it accordingly.

In image only mode:

with mask

with mask

maskless

maskless

In video only mode: video

About


Languages

Language:Jupyter Notebook 99.2%Language:Python 0.8%