Skip to content

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

Notifications You must be signed in to change notification settings

dastratakos/Face-Mask-Detection

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published