| bin | ||
| src | ||
| .gitignore | ||
| config.json | ||
| Dockerfile | ||
| MobileNetSSD_deploy.caffemodel | ||
| MobileNetSSD_deploy.prototxt | ||
| README.md | ||
| requirements.txt | ||
Raspberry Pi OpenCV + MobilenetSSD targetting system.
What is this nonsense for?
I have no idea. It's meant to get live video input from a video camera (default path set to /dev/video0) and sends out commands to GPIO pins to move motors/engage a water pump (GPIO pins set to /dev/gpiomem).
Feel free to tell me how terrible the code is issue, PRs are welcome although it might take me a bit to review them.
Usage:
The code has been tested on a RPi 3B+ running 64-bit Raspbian lite and it seems to be quite useless with its 0.3 fps. For better performance I stream the video from the raspberry pi and process it on my laptop, then sending the commands back to the Pi.
Run the ./run_docker.sh script to get the system up and running. You might need to tinker with the script if your video device/GPIO pins are at a different location, just put the corrent ones in the appropriate variables and it should be fixed.
If you are not planning on running in debug mode, simply running docker run <image> should suffice.
Issues and fixes:
Error: qt.qpa.xcb: could not connect to display :1
Solution: xhost +local:docker