Skip to content

Kamlesh364/Real-time-face-mask-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Real-time-face-mask-detection

This repository contains python code to detect faces with or without masks.

Concept of DeepNeuralNetworks is used to prepare the model to detect the faces with or without masks. And, to prepare the model I've used ResNet50_v2 architecture to prepare the CNN.

OpenCV is used to detect faces in real-time using the Video Stream from the WebCam.

Requirements

To use this repository with Bash

1. Download the repository

git clone https://github.com/Kamlesh364/Real-time-face-mask-detection.git

2. Download the dataset

!wget https://data-flair.s3.ap-south-1.amazonaws.com/Data-Science-Data/face-mask-dataset.zip

3. prepare the dataset

  • unzipping dataset
unzip face-mask-dataset.zip
  • unzipping testing and training datasets
cd Dataset 
unzip train.zip 
unzip test.zip 
rm -rf train.zip test.zip 
cd .. 
  • train the model to test it in real-time
python3 train.py
  • test the model in real-time
python3 test.py

Working demo

Alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages