2. Drivers setup - Zeren-Zhao/parcel_sorting_car GitHub Wiki
Required packages:
- Raspberry Pi OS 32bit (previously called Raspbian): https://www.raspberrypi.com/software/
- Cmake: https://cmake.org/download/
- OpenCV for C++: https://opencv.org/
- zbar: https://github.com/ZBar/ZBar
- wiringPi: http://wiringpi.com/wiringpi-updated-for-the-pi-v3plus/
Installing Raspberry Pi OS:
- Download package.
- Install Raspberry Pi OS on your PC.
- Insert SD card into your PC.
- Open Raspberry Pi Imager.
- In Operating system select: Raspberry Pi OS (32-bit)
- In Storage select your SD card.
- Select setting and add your WIFI name (SSID) and password.
- Finally, click on Write.
Installing CMake:
- Open terminal
- Installation
sudo apt-get install cmake
Installing Opencv
- Open terminal
- Download OpenCV from Official website
- Extract all
- Open terminal and use
cd
go to the opencv directory - Create a new build folder for building
mkdir build
cd build
- Compilation
cmake ..
sudo make
sudo make install
sudo make
is very time consuming, about five to six hours depending on the internet speed.
Installing zbar
- Open terminal
- Installation
sudo apt-get install libzbar-dev
Installing wiringPi
- Open terminal
- Installation
cd /tmp
wget https://unicorn.drogon.net/wiringpi-2.46-1.deb
sudo dpkg -i wiringpi-2.46-1.deb
- To test if you have already installed wiringPi, you can open terminal
gpio readall
if there is the map of gpio, you have installed the wiringPi successfully