Skip to content

Detecting whether a person is wearing a face mask and what type of mask they are wearing with TensorFlow and Raspberry Pi

License

Notifications You must be signed in to change notification settings

wangyifan411/Face-Mask-Type-Detector

Repository files navigation

Face Mask Type Detector

Example0

This repository contains the code and Google Colab notebook for training a face mask type detector with TensorFlow Object Detection API.

The blog post of this project can be found on Medium.

The model is used to detect face masks of 4 classes: homemade cloth covers, surgical mask, n95 mask and no mask. The corresponding labels are:

  • homemade
  • surgical 
  • n95
  • bare

Dependencies on Windows 10

  • Python 3.5
  • TensorFlow 1.10

Training image examples

The images used for training are from Google and Upslashe. There are 247, 197, 184 and 255 images for each class.

  • homeamde homemade

  • surgical  surgical

  • n95 n95

  • bare bare

Model Output

  • Testing on images from the Internet Example1

  • Testing with a friend in low light. All masks were labelled correctly! Example2

  • Test images from a Raspberry Pi camera Example3

About

Detecting whether a person is wearing a face mask and what type of mask they are wearing with TensorFlow and Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published