Victor Altamirano
Published © MIT

Facemask Detector

FPGA-based system that monitors facemask use through artificial intelligence, includes a thermometer and facemask dispenser.

AdvancedFull instructions provided10 hours5,173

Things used in this project

Hardware components

Zynq UltraScale+ MPSoC ZCU104
Zynq UltraScale+ MPSoC ZCU104
×1
Adafruit HUZZAH32 – ESP32 Feather Board
Adafruit HUZZAH32 – ESP32 Feather Board
×1
DEVMO 8448 LCD
×1
MLX90614ESF
Non-contact Infrared Temperature Sensor.
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
TL-WN823N
USB TP-Link USB Wifi Adapter
×1
UGREEN USB Bluetooth 4.0 Adapter
×1
e-con Systems See3CAM_CU30 - 3.4 MP. (Included in the kit)
×1
16 GB MicroSD Card (Included in the kit)
×1
12-5A AC/DC Adapter Power Supply Jack Connector. (Included in the kit)
×1
Targus 4-Port USB 3.0 Hub (Included in the kit)
×1

Software apps and online services

PYNQ Framework
AMD PYNQ Framework
DPU Pynq
TensorFlow
TensorFlow
Keras
OpenCV
OpenCV
Arduino IDE
Arduino IDE
Jupyter Notebook
Jupyter Notebook

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

ZCU104 Bottom

ZCU104 Top

Display and Temp Sensor Case Top

Display and Temp Sensor Case Bottom

Schematics

Complete Solution

Benchmarks

Connection Diagram

ZCU104 Processing

FPS

Display and Temp Sensor

Complete Logic

Code

install_docker.sh

BatchFile
#!/bin/sh
sudo apt-get remove docker docker-engine docker.io containerd runc -y
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
sudo groupadd docker
sudo usermod -aG docker $USER
docker run hello-world

install_vitis.sh

BatchFile
#!/bin/sh
git clone --recurse-submodules https://github.com/Xilinx/Vitis-AI
cd Vitis-AI
docker pull xilinx/vitis-ai:latest
cd   

install_cpu.sh

BatchFile
#!/bin/sh
cd Vitis-AI/docker
sudo bash ./docker_build_cpu.sh
cd   

install_gpu.sh

BatchFile
#!/bin/sh
cd Vitis-AI/docker
sudo bash ./docker_build_gpu.sh
cd  

install_vitis.sh

BatchFile
#!/bin/sh
cd Vitis-AI
sudo bash docker_run.sh xilinx/vitis-ai-cpu:latest    

Github Repo

Credits

Victor Altamirano

Victor Altamirano

25 projects • 81 followers
I am a Biomedical engineer who likes to develop hardware and software solutions.

Comments