Code Monkey home page Code Monkey logo

covid19-face-mask-detection-cnn-opencv's Introduction

Covid19 FaceMask Detector using CNN & OpenCV.

Face Mask Detection system built with OpenCV, Keras/TensorFlow using Deep Learning and Computer Vision concepts in order to detect face masks in static images as well as in video streams.

                                   

Live Demo:

😇 Motivation

In the present scenario due to Covid-19, there is no efficient face mask detection applications which are now in high demand for transportation means, densely populated areas, residential districts, large-scale manufacturers and other enterprises to ensure safety. Also, the absence of large datasets of ‘with_mask’ images has made this task more cumbersome and challenging.

⭐ Features

This system can be used in real-time applications which require face-mask detection for safety purposes due to the outbreak of Covid-19. This project can be integrated with embedded systems for application in airports, railway stations, offices, schools, and public places to ensure that public safety guidelines are followed.

📁 Dataset

The dataset used can be downloaded here - Click to Download

Open In Colab

This dataset consists of 1006 images belonging to two classes:

  • with_mask: 500 images
  • without_mask: 606 images

🚀  Installation

  1. Download the files in this repository and extract them.
  2. Run Face_Mask_Detection.ipynb file first
  3. Running the above .ipynb file will generate Model.h5 file.
  4. Now Run Mask.py file
  5. Done.

NOTE: {

pip install opencv-python

pip install numpy

pip install keras

pip install tensorflow

To Fix/Install Modules }

🔑 Results

Our model gave 92% accuracy for Face Mask Detection after training via tensorflow==2.3.1

We got the following accuracy/loss training curve plot

👏 And it's done!

Feel free to mail me for any doubts/query :email: [email protected]

❤️ Owner

Made with ❤️  by Aryan Negi

covid19-face-mask-detection-cnn-opencv's People

Contributors

cybernobie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.