Skip to content

A python script with GUI interface to detect unmasked individuals and recognise them (known individuals) by their names during COVID-19 pandemic in a workspace.

Notifications You must be signed in to change notification settings

vbdane/MaskDetection-FaceRecognition-COVID19-MonitoringSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaskDetection-FaceRecognition-COVID19-MonitoringSystem

A python script with GUI interface to detect unmasked individuals and recognise them (known individuals) by their names during COVID-19 pandemic in a workspace.

About the project

This python project was created as a submission for a school project during the COVID-19 pandemic. The GUI intentionally contains dumbed down language to make non-technical amongst the staff whom this was presented before, understand the concept better.
The primary logical objectives are as follows:
• 😀 Obtain facial images of persons present in a workspace to train a pre-built face-recognition model.
• 📸 Continously parse a video livestream and to check for faces present frame-by-frame using a caffemodel.
• 😷 If any faces detected, check the presence of a mask using pre-trained model.
• 😳 Use the trained face-recognition model to identify the unmasked face and record the name in a locally stored sqlite database.
• 💻 Achieve all this with visual aid (GUI navigation, displaying stream on screen) whenever possible.

How to

This project is not polished enough to be deployed but the logic can certainly be refined and then extrapolated to handle streams from camera modules via say, a Raspberry Pi. If you wish to just run this project as it is, follow the steps ahead after downlading (&extracting) or cloning this repository.

1. Virtual Environment

Open a comand prompt and then navigate to wherever your project is stored.
cd <PATH-TO-PROJECT>

then type the following to install virtualenv package

pip install virtualenv

now, you can create a new virtual environment using the following command

virtualenv myvirtualenv

finally, activate the created virtual environment

myvirtualenv\Scripts\activate

2. Install requirements

In the same terminal, type the following command
pip install -requirements.txt

make sure you install the same versions as given in the file since I've tested with those versions and open-cv may get cranky at times with others.

3. Run

Run the main_gui.py file. A GUI should open which will contain non-technical jargon, navigate through it step-by-step.
py main_gui.py

About

A python script with GUI interface to detect unmasked individuals and recognise them (known individuals) by their names during COVID-19 pandemic in a workspace.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages