Contactless infrared thermomter System for Covid-19 epidemic prevention and control.It can be applied in airport or train entrance as a security check during covid-19 epidemic.If it detect a person whose body temperature is above 37.5℃ which cause the red light on and buzzer ringing,then the person cann't allowd to get in the public transportation. This design aim to decline the number of virus carriers appear in public palace and reduce the spread of virus.
🏃Zeyuan Song
- Raspberry Pi 4 B
- CSI Infraed Camera Module
- LED Traffic Light
- Buzzer Module
- Thermal Imager(GY-AMG8833)
- GPIO extender
OpenCV is definitely needed to installed on Raspberry Pi.The version used for this project is 4.1.0.WiringPi is a basic library to applied on GPIO control functions.Adafruit_Blinka library provides the CircuitPython support in Python.This may alsp need to enabling I2C on Pi platform.And AMG88xx library supports AMG8833 sensor.
Enable the Camera Interface
sudo raspi-config
Test camera
raspistill -o Desktop/image.jpg -w 500 -h 500
- cmake
sudo apt-get install cmake
- openCV-4.1.0
1.update raspbian and Increase the swap-size2.Install tools and libraries for openCVsudo apt-get update && sudo apt-get upgrade && sudo rpi-update sudo nano /etc/dphys-swapfile #CONF_SWAPSIZE=100 CONF_SWAPSIZE=2048
3.Get source codesudo apt-get install build-essential cmake pkg-config sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev sudo apt-get install libxvidcore-dev libx264-dev sudo apt-get install libgtk2.0-dev libgtk-3-dev sudo apt-get install libatlas-base-dev gfortran
4.Compile openCVwget -O opencv.zip https://github.com/opencv/opencv/archive/4.1.0.zip wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.1.0.zip unzip opencv.zip unzip opencv_contrib.zip
5.Build and Install openCVcd ~/opencv-4.1.0/ mkdir build cd build cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-4.1.0/modules \ -D BUILD_EXAMPLES=ON ..
6.Run face detection and result shows belowmake -j4 sudo make install && sudo ldconfig
- Pi 3V3 to sensor VIN
- Pi GND to sensor GND
- Pi SCL to sensor SCL
- Pi SDA to sensor SDA
1.Python Installation of AMG88xx Library
sudo pip3 install adafruit-circuitpython-amg88xx
2.Open i2c interface from Pi
sudo raspi-config
3.Interface Options--->I2C--->Enable
sudo i2cdetect -y 1
4.Run the Amg8833 test code and result bellow
1.Install wiringPi
sudo apt-get install git-core
sudo apt-get update
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
2.check
gpio -v
mkdir build
cd build
cmake ..
make
./face_detection
Project is distributed under MIT License
Zeyuan Song - 2605623s@student.gla.ac.uk
Project Link: https://github.com/zeyuan-song0204/Remote-infrared-thermometer-