Skip to content

marinafdezban/final_project

Repository files navigation

Face-Mask Detection 😷

LinkedIn

👩‍💻 Introduction

In the COVID-19 crisis wearing masks is absolutely necessary for public health and in terms of controlling the spread of the pandemic. This project's aim is to develop a system that could detect masked and unmasked faces in images and real-time video. This can, for example, be used to alert people that do not wear a mask when using the public transport, airports or in a theatre.

🙋 Project Workflow

Our pipeline consists of three steps:

  1. An AI model which detect all human faces in an image.
  2. An AI model which predict if that face wears mask/no_mask.
  3. The output is an annotated image with the prediction.

🚀 Model's performance

The face-mask model is trained with 900 images but in order to increase their volume it was used data augmentation and the weights of the MobileNetV2 model. More about this architecture can be found here.

The facemask model has an accuracy of 98% and a AUC of 91%.

⭐ Streamlit app

Face Mask Detector with images and video using Tensorflow & Streamlit Webrtc

command

$ streamlit run app.py 

IMAGES

VIDEO

⚠️ Technology Stack

  • OpenCV
  • Caffe-based face detector
  • Keras
  • TensorFlow
  • MobileNetV2
  • Streamlit & Streamlit Webrtc

📂 Folder Structure

└── final_project
    ├── css
    │   └── styles.css
    ├── face_detector
    │	├── deploy.prototxt
    │	└── res10_300x300_ssd_iter_140000.caffemodel
    ├── images_test
    ├── notebooks
    ├── plots
    ├── .gitignore
    ├── README.md
    ├── app.py
    ├── facemask_detector.py
    ├── mask_detector_video.py
    └── requirements.txt

👀 Next Steps

  • Upload the streamlit ad-hoc app to Amazon Web Services.
  • Keep improving the performance of face and face-mask AI model.
  • Keep improving the detection of faces with low light and low quality pictures/webcams.

📫 Contact info

For questions, suggestions and other inquiries... ping me here.

About

Facemask detector using Convolutional Neural Network for pictures and real-time video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages