Giter Site home page Giter Site logo

face-mask-detection's Introduction

Face mask detection system

A full guide to make a face mask detection system using OpenCV.

Importance of this project

I have created this system that detects the face and then recognize if a person is wearing the face mask correctly or incorrectly. Why I selected to do this project? The reason is as you are already familiar that in 2020 our lives changed because of the global issue of Covid-19. The virus started spreading everywhere through the air and every country made wearing face masks mandatory. The reason for wearing a face mask was to stop the spreading of the Covid-19 virus and to protect everyone. Even now many people are vaccinated, and the spreading of the virus is also very less but still, there are places where wearing a face mask is mandatory. Mostly crowded places like public gatherings. So, creating an artificially intelligent system that can detect if a person is wearing a face mask or not is very useful. If a person is not wearing a mask then the system will tell the authorities by sending alerts.

How to run the project

Follow these steps if you want to use this project or make the whole project from scratch.

  1. Clone the project on your local machine.
  2. Download Anaconda.
  3. Using command line go to the main directory of the project and create a new environment with this command.
python -m venv facemask
  1. After creating the environment then activate the environment with this command.
.\facemask\Script\activate
  1. Download all the required packages by going in to the "1_Installation" folder and type this command. It will download all the required packages for the project.
pip install -r requirements.txt
  1. Open "03_prediction" file in jupyter notebook. This file is located in "2_Machine_Learning" folder.
  2. Run all the code cells and at the end you will be able to detect face mask in any image or in realtime.

If you want to do this project from scratch. Please follow the instruction manual. I have mentioned all the steps followed in this project.

face-mask-detection's People

Contributors

omrusman avatar

Watchers

 avatar

Forkers

staqya98

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.