Projects / Ideas / Face mask detector on a Pi

Face mask detector on a Pi

IntermediateEdge AIIdeaReviewed
In short

How do you build a face mask detector on a Pi?

A Pi camera checks whether a person at a clinic entrance is wearing a mask and shows a green or red light. You need Raspberry Pi 5, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi 27 W USB-C power supply, Raspberry Pi Camera Module 3, LED 5 mm red, LED 5 mm green and Resistor 220 Ω × 2.

Level
Intermediate
Time
About 300 min
Parts
7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Use a trained image classifier on live video.

Parts list

How to build it

  1. Detect faces with a fast detector
  2. Crop each face
  3. Classify mask or no mask
  4. Light the LED
  5. Show results on screen without saving images

Related projects

Common questions

What parts do I need for the face mask detector on a Pi?

Raspberry Pi 5, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi 27 W USB-C power supply, Raspberry Pi Camera Module 3, LED 5 mm red, LED 5 mm green and Resistor 220 Ω × 2.

How long does the face mask detector on a Pi take to build?

About 300 minutes for a intermediate maker.