Skip to content

a tool to assess the prevalence of mask-wearing among individuals in a photo or video

License

Notifications You must be signed in to change notification settings

zeyad-mansour/mask-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mask Detection

GitHub repo size GitHub contributors

The YOLOv5 framework yields extremely fast inference times with high accuracy.

Demo

This project has been integrated into a web application found here (no longer active).

Example Image Output: demo_image_output

Example Video Output: demo_video_output

Prerequisites

  • You have installed a 64-bit release of Python 3.7 or above
  • All Python modules required are installed (see "Installing SDM" below)

Installation

  1. Clone this repository.

  2. Navigate to the root of the project folder via the CLI. Use the package manager pip to install the necessary dependencies. e.g.,

pip install -r requirements.txt

Usage

Option 1: Navigate to the root of the project folder via the CLI. e.g.,

python sdm.py [source]
  • Image or video: [source] is the path to that file (relative to the root folder)
  • Webcam: Do not enter [source]
  • HTTP/RTSP stream: [source] is the URL

Ensure that the default interpreter for the python command is version 3.7 or above (or use python3)

Option 2: Upload images/videos to the web application.

Contributors

This project was created by:

It was created for the 2021 High School I/O hackathon and received 1st place.

Future Updates:

  • Use computer vision to implement social distancing approximation
  • Improve the style of the web application

License

This project uses the following license: GNU GPL v3

About

a tool to assess the prevalence of mask-wearing among individuals in a photo or video

Resources

License

Stars

Watchers

Forks

Packages

No packages published