Skip to content
/ fmd-ai Public template

It can be used as a real-time surveillance system or integrated into existing security systems, such as CCTV. this AI can help reduce the spread of viruses and other airborne diseases by reminding people to wear masks in public areas and helping security personnel monitor compliance.

License

Notifications You must be signed in to change notification settings

b4tec/fmd-ai

Repository files navigation

fmd-ai

Setting up Face Mask Detection project in Windows

This is a guide to set up the project on Windows.

🚀  Installation

  1. Clone the repo
> git clone https://github.com/b4tec/fmd-ai.git
  1. Change your directory to the cloned repo and create a Python virtual environment named 'env', type the following commmand in command prompt
> py -m venv env
  1. Activate the Virtual environment with
> .\env\Scripts\activate
  1. Now, run the following command in your Command Prompt to install the libraries required
> pip3 install -r requirements.txt

Running the project

  1. Open terminal. Go into the cloned project directory 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 
  1. To detect face masks in an image on webapp type the following command:
> streamlit run app.py 

About

It can be used as a real-time surveillance system or integrated into existing security systems, such as CCTV. this AI can help reduce the spread of viruses and other airborne diseases by reminding people to wear masks in public areas and helping security personnel monitor compliance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published