SravanChittupalli / COVID-19-Mask_detector

Real Time Mask Detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COVID-19-Mask_detector

Real Time Mask Detection

In the present scenario due to Covid-19, there is no efficient face mask detection applications which are now in high demand for transportation means, densely populated areas, residential districts, large-scale manufacturers and other enterprises to ensure safety. Also, the absence of large datasets of ‘with_mask’ images has made this task more cumbersome and challenging.

Tech/framework used

YOLO Architecture

Paper Yolo v4: https://arxiv.org/abs/2004.10934

Yolo Architecture

YOLO is a clever convolutional neural network (CNN) for doing object detection in real-time. The algorithm applies a single neural network to the full image, and then divides the image into regions and predicts bounding boxes and probabilities for each region.

STEPS

  1. Clone this repository
  2. Clone AlexyAB's darknet implementation
  3. Follow AlexyAB's README to build the repo. Run the demo successfully
  4. Copy this repo's mask.py and paste it into ./darknet/
  5. Copy this repo's yolo-obj.cfg and paste it into ./darknet/cfg/
  6. Copy this repo's obj.data and paste it into ./darknet/cfg
  7. Copy this repo's obj.name and paste it into ./darknet/data/
  8. You can find pre-trained weights here
    There are 2 weight files one is using Roboflow's mask dataset that is good for mask detection in cloase range and the other one is a custom dataset made by Aditya Purohit to which I have added my own data.

Train

Follow the notebook that is included in the repository.

Dataset

The dataset used can be downloaded here - Click to Download

Video of results

Click here for demo video

Acknowledgements

Tutorials

Roboflow :- How to Train YOLOv4 on a Custom Dataset

About

Real Time Mask Detection


Languages

Language:Jupyter Notebook 97.8%Language:Python 2.2%