james wolf
Published © MIT

Raspberry Pi Covid Mask Detector using Tensorflow

This hack uses low cost hardware and on device prediction to detect if people are correctly masked to protect against Covid-19

AdvancedFull instructions provided10 hours272
Raspberry Pi Covid Mask Detector using Tensorflow

Things used in this project

Hardware components

Raspberry Pi 4 Model B
Raspberry Pi 4 Model B
×1
generic usb webcam
×1
Google Coral USB TPU
×1
Adafruit Mini PiTFT
×1
Raspberry Pi Armor Case
×1

Software apps and online services

Google Colab
Online Python machine learning notebooks with GPU and TPU's
LabelImg
Free software for creating the XML files that stores the labels and bounding boxes needed for Tensorflow machine learning models

Story

Read more

Code

Raspberry Pi Code that runs against the TPU for inference

with the hardware setup as described (with TPU) run the maskclassifier.py file from the terminal. There are several other examples of running without the tpu included in the repo.

Google Image Downloader

I wrote these scripts to simplify the process of searching for and downloading the images that I was going to need for training.

Credits

james wolf
4 projects • 26 followers
arduino nerd
Contact

Comments

Please log in or sign up to comment.