Skip to content

The Face_Mask_Detection app uses AI to identify individuals wearing 😷 or not wearing face masks in real-time video feeds. Developed in response to COVID-19 🦠, it ensures compliance with safety protocols in public spaces by providing instant alerts 🚨 for non-compliance.

Notifications You must be signed in to change notification settings

p2kalita/Face_Mask_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Face Mask Detection

Table of Contents

Introduction

Face Mask Detection is a computer vision project aimed at detecting whether a person is wearing a face mask or not. The project utilizes deep learning techniques to classify faces into two categories: "With Mask" and "Without Mask." The motivation behind this project is to help enforce mask-wearing policies in public places and contribute to public health and safety during pandemics like COVID-19.

Features

  • Real-time face mask detection from images or live video streams.
  • High accuracy due to the deep learning model used.
  • Easy-to-use interface for both developers and end-users.
  • Streamlit WebApp, Simple and accurate.

Tools

Screenshot 2023-07-29 152144 Screenshot 2023-07-29 152152

Installation

To set up the Face Mask Detection project, follow these steps:

  1. Clone the repository:
git clone https://github.com/p2kalita/Face_Mask_Detection.git
  1. Navigate to the project directory:
cd FaceMaskDetection
  1. Open Ternimal as Conda Base environment and Environment create
conda create -p env python==3.10.0
conda activate env/
  1. Install dependencies
pip install -r requirements.txt
  1. Run the WebApp
streamlit run app.py

Dataset

https://www.kaggle.com/datasets/ahmedabdelraouf/face-datasets

Model

The deep learning model used for this project is a custom convolutional neural network (CNN) architecture. It was trained on the dataset mentioned above to detect face masks accurately. The model is implemented using popular deep learning frameworks like TensorFlow/Keras.

β”œβ”€β”€  artifacts                    - here's the models stored.
β”‚    └── Mask_detection_model.h5  
β”‚    └── Face Models
β”‚      └── res10_300x300_ssd_iter_140000.caffemodel
β”‚      └── deploy.prototxt

Results

The model achieved an accuracy of 96% on the test dataset. The performance may vary depending on the dataset and the quality of the images used for detection.

Contributing

Contributions to this project are welcome. If you find any issues or want to enhance the functionality, feel free to open a pull request. Please make sure to follow the coding conventions and provide detailed information about the changes.

About

The Face_Mask_Detection app uses AI to identify individuals wearing 😷 or not wearing face masks in real-time video feeds. Developed in response to COVID-19 🦠, it ensures compliance with safety protocols in public spaces by providing instant alerts 🚨 for non-compliance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published