Git Product home page Git Product logo

face_mask_detection's Introduction

Face Mask Detection

Real time face mask detection

Using Transfer Learning

Introduction

Face mask detection model is a deep learning based model which is developed with the help of transfer learning. Model takes the image of a person as an input and predicts whether the person is wearing a mask or not.

Dataset

Dataset is containing 12k images divided in training, testing and validation directories. I’m only using 840 images for training and for testing 645 images and also use 4 internet downloaded images for testing the model.
Dataset Link:- https://www.kaggle.com/ashishjangra27/face-mask-12k-images-dataset

Model

For training I’m using the VGG16 model. Model contains a total 20 layers in which 13 are Convolutional, 1 is flatten , 1 Dense and 5 Maxpooling layers are present. Accuracy on test data is 99.7%. Model trained for only 5 epochs.

Prediction Process

For prediction, I’m using the openCV library and Haar-cascades face-detection.xml file for detecting the face in the image. After detecting the face in the image it crops the face part sends to the face mask detection model for prediction.

Predictions on Random Images

face_mask_detection's People

Contributors

bhavuksagar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.