Skip to content

πŸ’‘ This is a requirement for CS180 Artificial Intelligence Course of the Department of Computer Science, College of Engineering, University of the Philippines, Diliman under the guidance of Mr. Carlo Raquel for AY 2022-2023.

Notifications You must be signed in to change notification settings

cessbub/CS180-MaskPatrol

Repository files navigation

CS180-MaskPatrol πŸš€

Creators πŸ‘©πŸ»β€πŸ’»

Ventures, Calderon, Calma, Tan

Project Summary πŸ“

The Philippines' pandemic is not yet over as there are still sudden surges of COVID-19 cases. However, the UP community is transitioning to a face-to-face (F2F) setup. In times like these, safety protocols should be strictly enforced since the virus spreads rapidly between people within close proximity. Some of these protocols and guidelines are to regularly wear face masks and to practice social distancing.

This project proposal aims to solve this relevant and timely problem, especially for the UP community. Machine learning and computer vision will be used to develop a model that will determine in real-time whether a person is wearing a face mask correctly or incorrectly, and if social distancing is observed.

The project will use datasets of images of what it wants to detect in order to create a machine model that will detect the different situations. Furthermore, Convolutional Neural Network will be used to train the model so that it can label the situations more accurately to be used by the community. The project will then implement the model so that it can label real-time videos using computer vision that will be deployed into a WebApp. Additionally, it aims to include an alarm system if a violation of the safety protocols was observed.

Table of Contents πŸ“‘

How to run this repo ▢️

  1. Git clone the repository
  2. Create a virtual environment
    • Run in terminal python3 -m venv cv
    • Run in terminal cd cv
    • Run in terminal source bin/activate
  3. Run in terminal
    • conda install -c conda-forge opencv
    • pip install scipy
    • pip install tensorflow
    • pip install flask
    • pip install opencv-python
  4. Run in terminal python face_detection_app.py

Directory structure πŸ“

CS180-MASKPATROL    
|__.venv
|__datasets
|       |__FMD-SD
|       |     |__Face Mask Detection
|       |             |__ annotations
|       |             |__ images
|       |__MaskedFace-Net + RMFD + 12k masks + custom images
|             |__NM (added more images)
|             |__CMFD (added more images)
|             |__IMFD (added more images)
|__face_detection_app.py
|__mask-detection.ipnyb
|__mask_detection.h5
|__README.me

Where to get the datasets? πŸ“‚

  1. FMD-SD
  2. CMFD and IMFD
  3. NM (Note: Merged the WithoutMask folders into one NM folder)

About

πŸ’‘ This is a requirement for CS180 Artificial Intelligence Course of the Department of Computer Science, College of Engineering, University of the Philippines, Diliman under the guidance of Mr. Carlo Raquel for AY 2022-2023.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •