Skip to content

dmifer/mask_detection

Repository files navigation

Demonstration

preview

Tech used

Dataset

This dataset consists of 4095 images belonging to two classes:

  • with_mask: 2165 images
  • without_mask: 1930 images

The images used were real images of faces wearing masks. The images were collected from the following sources:

  • Bing Search API
  • Kaggle datasets
  • RMFD dataset

Prerequisites

All the dependencies and required libraries are included in the file requirements.txt

Installation and running

  1. Clone the repo
$ git clone [email protected]:knowledge-base/mask_det.git
  1. Change your directory to the cloned repo
$ cd mask_det
  1. Create a Python virtual environment named 'test' and activate it
$ virtualenv test
$ source test/bin/activate
  1. Run the following command in your Terminal/Command Prompt to install the libraries required
$ pip3 install -r requirements.txt
  1. To detect face masks in real-time video streams type the following command:
$ python3 mask_det_video.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages