https://github.com/muntahashams/real-time-mask-detection
trained on own CNN model and tested on web camera
https://github.com/muntahashams/real-time-mask-detection
cnn covid-19 face-mask-detection face-mask-detector keras opencv real-time tensorflow webcam
Last synced: 7 months ago
JSON representation
trained on own CNN model and tested on web camera
- Host: GitHub
- URL: https://github.com/muntahashams/real-time-mask-detection
- Owner: MuntahaShams
- Created: 2021-04-12T10:05:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-14T16:59:54.000Z (over 4 years ago)
- Last Synced: 2025-01-13T11:29:44.404Z (9 months ago)
- Topics: cnn, covid-19, face-mask-detection, face-mask-detector, keras, opencv, real-time, tensorflow, webcam
- Language: Jupyter Notebook
- Homepage:
- Size: 3.58 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real-time-Mask-Detection
Real time face-mask detection using Deep Learning and OpenCV## About Project
This project uses a Deep Neural Network, more specifically a Convolutional Neural Network, to differentiate between images of people with and without masks. The CNN manages to get
an accuracy of **98.37% on the training set** and **96.8% on the test set**. Then the stored weights of this CNN are used to classify as mask or no mask, in real time, using OpenCV.
With the webcam capturing the video, the frames are preprocessed and and fed to the model to accomplish this task. The model works efficiently with no apparent lag time between
wearing/removing mask and display of prediction.#### The model is capable of predicting multiple faces with or without masks at the same time
## Working
### With Mask

## Dataset
The data used can be downloaded through this [link](https://www.kaggle.com/omkargurav/face-mask-dataset/) or can be downloaded from this repository as well (folders 'test' and
'train'). There are 3725 images with mask and 3828 images without mask.## How to Use
To use this project on your system, follow these steps:
1.Clone this repository onto your system by typing the following command on your Command Prompt:
```
git clone https://github.com/MuntahaShams/real-time-mask-detection.git
```
followed by:```
cd real-time-mask-detection
```2. Open jupyter notebook using cmd
```
jupyter notebook
```3. Go to realtime.ipnyb:
```
run all cells
```
## You should have tensorflow=2.4.1 to run this project
#### The Project is now ready to use !!