• Stars
    star
    133
  • Rank 271,051 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Real time face-mask detection using Deep Learning and OpenCV

Face-Mask Detector

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.2% on the training set and 97.3% 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

image

No Mask

image

Dataset

The data used can be downloaded through this link or can be downloaded from this repository as well (folders 'test' and 'train'). There are 1314 training images and 194 test images divided into two catgories, with and 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/Karan-Malik/FaceMaskDetector.git

followed by:

cd FaceMaskDetector
  1. Download all libaries using::
pip install -r requirements.txt
  1. Run facemask.py by typing the following command on your Command Prompt:
python facemask.py

The Project is now ready to use !!

More Repositories

1

Chatbot

A Deep-Learning multi-purpose chatbot made using Python3
Python
107
star
2

ConvNet

CNN to detect Pneumonia using Chest X-Rays
Python
17
star
3

IMDb_bot

Telegram bot to fetch details and ratings for any movie
Python
10
star
4

prepdata

Automating the process of Data Preprocessing for Data Science
Python
7
star
5

Smart-Attendance-and-Engagement-Detection-System

This repository uses facial recognition to identify students and save their attendance in a CSV file. Moreover, it also continuously detects for signs of drowsiness in the student and prints a warning if required.
Python
6
star
6

MovieHype

A Python based movie recommender hosted using Flask
HTML
4
star
7

FaceMaskDetectorAdvanced

Python
3
star
8

RestrictedBoltzmannMachine

Python3 implementation of the Unsupervised Deep Learning Algorithm, Restricted Boltzmann Machine.
Python
3
star
9

PeopleCounter

Using OpenCV to count the number of people entering or exiting a particular ROI
Python
2
star
10

UberDataAnalysis

Uber Data Analysis and Visualization using Python
Jupyter Notebook
2
star
11

ConversationAnalyzer

Python
1
star
12

karan-malik.github.io

My personal portfolio website
HTML
1
star
13

FakeNewsDetection

Using Machine Learning and NLP to segregate the unreliable and reliable news articles
Python
1
star
14

Apriori-Eclat

Association Learning for Market Basket Analysis using Apriori and Eclat
Jupyter Notebook
1
star
15

pyspark

Python
1
star
16

SimpleGANs

Using a GAN implemented with Keras to generate images similar to the MNIST Dataset
Jupyter Notebook
1
star
17

WordEmbeddings

Creating Word Embeddings using Keras
Jupyter Notebook
1
star
18

ImageScrapper

Using Selenium to extract images from Google Image Search using keywords
Python
1
star