RPI zeros UDP client video streamer for WUROV
Install dependencies
$ sudo apt install cmake lua5.4 g++ libopencv-dev v4l-utils gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihfclone this repo
$ git clone https://github.com/WIT-IEEE-MATE-ROV/pi_stream.gitBuild opencv (if needed)
Inorder to build this application you may need to build opencv from source. Once you have build opencv or you have installed libopencv-dev you should locate the headder files in /usr/include/opencv4/opencv2
Install Premake
Before we can build the pi_stream binary we need to download premake5.
This can be done with your systems packagemanager, such as apt or pacman.
$ sudo pacman -S premakeInstall Premake From Tarball
If your package manager dose not maintain premake5 you can install from the tarball.
download premake5 from the website unzip the tarball and change permissions.
$ tar -xzvf premake-5.0.0-beta3-linux.tar.gz
$ sudo chmod +x premake5You can add the premake5 binary to your path but this is not necessary. You could just move the latest premake5 binary into this project folder.
Add the flowing line to your shells respective .bashrc file to add preamke to your path.
export PATH="$PATH:/path/to/premake5"Run Preamke and make
Once you have opencv and premake installed you can build the application.
$ premake5 gmake premake5.lua
$ make
#$ make helpPretty sure you need to make some multi-platform builder or something idk look it up.
docker buildx build --platform linux/arm64/v8 -t pi_stream:arm64 . --load
docker run --platform linux/arm64/v8 -d --cap-add sys_ptrace -p127.0.0.1:2222:22 -it pi_stream:arm64 bash