Inspiration is the Nimslo 3D camera. Take simultaneous pics with n connected cameras.
Order them one after the other, and loop on the preview.
Using PiTFT 2.2 inch non-touch display for now, and the terminal window, no X. - Setup: https://learn.adafruit.com/adafruit-2-2-pitft-hat-320-240-primary-display-for-raspberry-pi/overview
I use 4 pi zero webcams for now and trying to
mkdir build && cd build
cmake ..
make
./camera
// Do not forget to manually list all the libs at (...)
g++ -o capture_display main.cpp utils/list_cameras.cpp (...) -lopencv_core -lopencv_imgproc -lopencv_videoio -lopencv_highgui -I/usr/include/opencv4 $(pkg-config --cflags --libs opencv4)
Install wiring pi https://github.com/WiringPi/WiringPi?tab=readme-ov-file
wget latest release, then
sudo apt install ./wiringpi-3.0-1.debImageMagick to generate gifs:
```sudo apt install imagemagick`
-
Make sure that the raspberry CAN compile the camera.
-
Run
docker build -f Dockerfile.rpi -t rpi-cross . -
Run
.cross-compile-setup.shon your machine to copy over the files from your raspberry pi to your build machine. -
Run
docker run --rm -it -v "$(pwd)":/project -w /project rpi-cross -
You should get a terminal, then you can navigate to the build folder
mkdir build && cd build
-
run
cmake ..then runmake -
finally scp it up with
scp camera rpi:/home/pi/camera -
log in to your raspberry, then run
./camera