Git Product home page Git Product logo

facemask-detection-using-deeplearning's Introduction

๐Ÿ˜ท FaceMask-Detection-using-Deeplearning

A CNN based Image Classification model to classify people with and without masks. A pilot project of Face mask detection. During the times of COVID-19, covering our face with a mask and maintaining social distancing is essential.
With advancements in the field of Deep Learning, now we can easily train a model and check if someone is earning a mask or not.

I have made FaceMask Detection.ipynb private to avoid misuse, contact me @[email protected] for complete directory โ˜บ
Need a detailed explanation of the project? ping me for personal 1-1 explanation โ˜

๐Ÿ—ƒ Dataset ๐Ÿ“ฐ HaarCascade
Link File

๐Ÿ“ข Favour:

It would be highly motivating, if you can STARโญ this repo if you find it helpful.๐Ÿ˜…

๐ŸŽ‰ Output:

๐Ÿƒโ€โ™‚๏ธ How to Run

Detecting faces with maks in video

  1. Navigate to jupyter-notebook ./FaceMask Detection using Deep Learning.ipynb
    I made this file private to avoid misuse, contact me @[email protected] for complete directory โ˜บ
  2. Run import libraries cell and load model cell.
  3. For getting real-time results, run predicition and casscade classifier cell

๐Ÿง  How it works!!

  • Read input either as single image or video from webcam using OpenCV.
  • Detect location of faces in given frame using Face_Frontal_Default Cascade Classifier.Download
  • Save the list of face portions for further steps.
  • Load the Custom-trained CNN model, iterate each face through the model to predict mask on face.
  • Post-process the frame ie; Tagging Face, with respective predictions.

๐Ÿ”งSetup

You can setup this project using either of the methods mentioned below.

๐Ÿ‘‰ Method 1: Setup (Pipenv Virtual Environment)

  1. Clone the project to your local system
  2. Navigate inside the project directory on your local system inside the terminal
  3. Install all dependencies using pipenv install --ignore-pipfile
  4. Start environment with pipenv shell

๐Ÿ‘‰ Method 2: Setup (pip)

  1. Clone the project to your local system
  2. Navigate inside the project directory on your local system inside the terminal
  3. Install all dependencies using pip install -r requirements.txt

๐Ÿ‘โ€ Creator Disclaimer Since the dataset used here is Open-Sourced, this code should only be used for research/academic/personal purposes only. The models were trained on the prajnasb's Open Source dataset, any form of commercial use is strictly prohibhited. Please contact me for all further queries.๐Ÿ˜‰

facemask-detection-using-deeplearning's People

Contributors

dependabot[bot] avatar snehitvaddi 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.