Giter Club home page Giter Club logo

face_mask_detector's Introduction

About the project

Wearing mask is the most effective way to control the spread of Corona virus. Face mask detector applications are in high demand especially to monitor public places like public marketplaces, public offices, malls, government buildings etc This project aims to create an efficient Face Mask detector application based on deep neural network.

alt text alt text

Dataset used for training

I have used the data from Face Mask Detection dataset from Kaggle. The dataset contained annotated images with 3 classes:

  1. with mask
  2. without mask
  3. mask worn incorrectly

The dataset contains total of 853 images along with annotations in PASCAL VOC format.

Technolgy stack used

  1. OpenCV
  2. TensorFlow 2 Object Detection API
  3. EfficientDet-SSD based Face Mask detector
  4. Python

Prerequisites

All the dependencies and required libraries are included in the file requirements.txt.

Model Training

The repo contains ssd efficientdet model trained with 20,000 iterations using Google Colab. You can also refer to my colab notebook, where I have tried to explain step by step flow for performing model training using Tensorflow2 object detection API.

Installation

  1. Clone the repo using following command

     $ git clone https://github.com/coolmunzi/face_mask_detector.git
    
  2. Create a virtual environment and change the directory to the cloned repo

  3. Change your directory to the cloned repo and create a Python virtual environment named 'test'

  4. Install the dependencies using following command

     $pip install -r requirements.txt
    
  5. To perform face mask detection on images:

     $python face_mask_detector.py --type image --input {Path to directory containing images} --output {Path to directory where you want to store the images with predictions}
    
  6. To perform face mask detection on webcam:

     $python face_mask_detector.py --type video --input webcam
    

face_mask_detector's People

Contributors

coolmunzi avatar

Watchers

 avatar

Forkers

luisgithub269

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.