GithubHelp home page GithubHelp logo

dastratakos / face-mask-detection Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 2.22 MB

A machine learning model to identify if a person is wearing a face mask or not and if the face mask is worn properly.

License: Apache License 2.0

Python 50.27% TeX 49.73%
face-mask machine-learning computer-vision cs229

face-mask-detection's Introduction

Contributors Forks Stargazers Issues MIT License

Face Mask Detection

Charles Pan, Gilbert Rosal, and Dean Stratakos

November 18, 2020

A machine learning model for a CS 229 final project
Read the report » · Request a feature »

Image

Table of Contents

About The Project

Across the globe, there have been 55.6M million reported coronavirus cases (up from 33.8M last month). Covid-19 has plunged countless nations into chaos and recession as they scramble to keep the virus contained. Due to the highly contagious nature of the virus, every individual must do their part in preventing the spread by taking precautions such as wearing a face mask. Yet there are still many individuals who refuse to do so - this careless behavior puts many lives at risk, so it is imperative that we hold these individuals responsible.

In light of this issue, our project aims to create a machine learning model that can accurately detect, given an image, whether a person is properly wearing a face mask or not. This project will especially be important in the global return to work effort as businesses continue to search for ways to keep their employees and customers safe. Automating the process of face mask detection will reduce human labor while creating a system of accountability.

Getting Started

To get a local copy up and running follow these simple steps.

  1. Clone the repo
git clone https://github.com/dastratakos/Face-Mask-Detection.git
  1. Install packages
pip install -r requirements.txt

Usage

  1. Run the pipeline and pass in the model to run. Note that this pipeline will run the data preprocessing if it has not been done yet. For example:
python run_pipeline.py -m SVM
  1. For ResNet models, it is recommended to use a VM through a platform such as GCP (Google Cloud Platform).

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Contact

Charles Pan, Gilbert Rosal, and Dean Stratakos - {cpan22, rosalg, dstratak}@stanford.edu

Project Link: https://github.com/dastratakos/Face-Mask-Detection

face-mask-detection's People

Contributors

charleslpan avatar dastratakos avatar rosalg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sri07-spec

face-mask-detection's Issues

Logistic regression

Implement vanilla logistic regression.
Input is a single vector of length (height * width) of the input image.
Output is a binary classification: mask or no mask.

Command Line Arguments

Add support for various command line arguments, and update config.py or some other file accordingly.

Data augmentation

Increase the size of the input dataset using the following operations:

  • horizontal flip
  • vertical flip
  • rotation
  • color grading
  • cropping individuals

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.