sudo raspi-config # enable i2c
sudo apt install i2c-tools
sudo apt install libi2c-dev
sudo apt install gpiod
sudo apt install libgpiod2
sudo apt install libgpiod-dev
Compile applications with -lgpiod
sudo apt install libsqlite3-dev
Compile applications with -lsqlite3
sudo apt install libcurl4-openssl-dev
sudo apt install libjsoncpp-dev
sudo apt install ffmpeg
sudo apt install dhcpcd5
Compile applications with -lcurl -ljsoncpp
-
Edit the
wpa_supplicant.conf
file to connect to the GoPro's Wi-Fi:sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Add the following lines:
network={ ssid="GoPro-SSID" # Replace with your GoPro's Wi-Fi SSID psk="GoProPassword" # Replace with your GoPro's Wi-Fi password key_mgmt=WPA-PSK priority=1 }
Replace
GoPro-SSID
andGoProPassword
with your actual GoPro credentials. -
Restart networking services to apply the changes:
sudo systemctl restart networking sudo systemctl restart dhcpcd
-
Verify the connection to the GoPro:
ifconfig wlan0
or
iwconfig
sudo apt install python3-opencv
sudo apt install libopencv-dev
sudo apt install python3-picamera2
mkdir /home/pi/Desktop/Object_Detection_Files
Copy the files in the zip file in this tutorial (https://core-electronics.com.au/guides/object-identify-raspberry-pi/#Set) into the above newly created directory
To install the service,run the following commands
sudo cp npits_service.service /etc/systemd/system/npits_service.service
sudo chmod 644 /etc/systemd/system/npits_service.service
sudo systemctl enable npits_service