Coder Social home page Coder Social logo

mask-detection-codeclause's Introduction

Mask Detection Using Machine Learning

This project is a Mask Detection system implemented using machine learning and computer vision techniques to identify whether a person in an image or video is wearing a mask (protective face covering) or not. The system contributes to safety and compliance monitoring, especially during situations that require mask-wearing.

Introduction

Mask detection is a critical application in situations that require adherence to mask-wearing guidelines, such as during a pandemic. This project demonstrates how to build, train, and evaluate a mask detection system using machine learning and computer vision.

Dataset:-

The mask detection system was trained on a labeled dataset of images and videos containing people with and without masks. The dataset includes diverse scenarios, face orientations, lighting conditions, and mask types to ensure robustness.

Roadmap:-

Mask Detection Using Machine Learning: Major Steps

1. Data Collection:
Gather a labeled dataset of images or videos containing people with and without masks. Ensure the dataset is diverse, includes various face orientations, lighting conditions, and mask types.

2. Data Preprocessing: Resize images to a consistent size to ensure compatibility with machine learning models. Normalize pixel values (typically between 0 and 1). Augment the data with techniques like rotation, scaling, and flipping to increase the dataset's size and robustness.

3. Data Labeling: Ensure that each image or video frame is labeled as "with mask" or "without mask." Annotate the dataset accurately and consistently.

4. Data Splitting: Divide the dataset into training, validation, and test sets (e.g., 70% for training, 15% for validation, 15% for testing).

5. Model Selection:

  • Convolutional Neural Networks (CNNs)
  • Transfer Learning (e.g., using pre-trained models like ResNet or MobileNet)
  • Support Vector Machines (SVMs)
  • Random Forests

6. Model Training: Train the selected model on the training dataset. Fine-tune hyperparameters, such as learning rate, batch size, and network architecture. Implement techniques like early stopping and model checkpointing to prevent overfitting.

7. Model Evaluation: Evaluate the trained model on the validation and test datasets using metrics like accuracy, precision, recall, F1-score, and ROC AUC. Check for false positives and false negatives, as they have different implications in mask detection.

Screenshots

App Screenshot

Run Locally

Clone the project

  git clone https://github.com/Hiteshydv001/Mask-detection-codeclause.git

Go to the project directory

  cd my-project

Install dependencies

Tech Stack

Client: Anaconda || Jupyter Notebook

Server:

๐Ÿ”— Links

linkedin

mask-detection-codeclause's People

Contributors

hiteshydv001 avatar

Watchers

 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.