The increasing number of traffic accidents and the casualties and property losses caused by them have gradually become a common concern of the society.
How to detect the fatigue state of drivers efficiently and accurately is of great social significance to effectively protect the life and property safety of drivers and other related personnel.
This module depends upon a knowledge of Markdown.
- 1.HOG Finish
- 2.NCNN Finish
- 3.PFLD-NCNN openvino
- 4.hyper thread Finish
Build Raspberry Pi 4b
-
environment
- After testing, the fulleye version cannot detect the camera well when using opencv, so the bluster version is used.
- opencv4.5.1 can be installed smoothly
- Need to install dependencies before installing opencv
- Need update python to python3
-
dependencies
-
$ sudo apt-get install cmake gfortran python3-dev python3-numpy libjpeg-dev libtiff-dev libgif-dev libgstreamer1.0-dev gstreamer1.0-gtk3 libgstreamer-plugins-base1.0-dev gstreamer1.0-gl libavcodec-dev libavformat-dev libswscale-dev libgtk2.0-dev libcanberra-gtk* libxvidcore-dev libx264-dev libgtk-3-dev libtbb2 libtbb-dev libdc1394-22-dev libv4l-dev libopenblas-dev libatlas-base-dev libblas-dev libjasper-dev liblapack-dev libhdf5-dev protobuf-compiler python-dev python-numpy -y
-
Raspberry Pi update failure handling method
$ sudo apt-get -y update --allow-releaseinfo-change
-
-
install opencv
-
step1
$sudo rpi-eeprom-update $sudo rpi-eeprom-update -a $sudo reboot
-
step2
The next step is to increase your swap space. OpenCV needs a lot of memory to compile. The latest versions want to see a minimum of 6.5 GB of memory before building. Your swap space is limited to 2048 MByte by default. To exceed this 2048 MByte limit, you will need to increase this maximum in the /sbin/dphys-swapfile. Everything is demonstrated in the slideshow below.
$ sudo nano /sbin/dphys-swapfile $ sudo nano /etc/dphys-swapfile $ sudo reboot
-
step3
$ wget https://github.com/Qengineering/ Install-OpenCV-Raspberry-Pi-32-bits/raw/main/ OpenCV-4-5-1.sh $ sudo chmod 755 ./OpenCV-4-5-1.sh $ ./OpenCV-4-5-1.sh
-
prepare camera hw
-
$sudo raspi-config
-
$sudo vi /etc/modules-load.d/modules.conf
- Add 'bcm2835-v4l2' after 'I2C'
-
-
How to Drive an LCD Display https://github.com/goodtft/LCD-show
-
git clone https://github.com/goodtft/LCD-show.git
-
chmod -R 755 LCD-show
-
cd LCD-show/
-
Note: The license
badge image link at the top of this file should be updated with the correct :user
and :repo
.