No description
Find a file
r1ghtwr0ng 6c47e03e98
FIx
2022-08-12 06:49:44 -07:00
bin Fixes 2022-05-03 21:27:55 +00:00
src Fixes 2022-05-24 16:33:18 +01:00
.gitignore Initial 2022-03-27 15:37:23 +00:00
config.json Raspberry client fixes 2022-05-03 01:41:10 +01:00
Dockerfile FIx 2022-08-12 06:49:44 -07:00
MobileNetSSD_deploy.caffemodel Initial 2022-03-27 15:37:23 +00:00
MobileNetSSD_deploy.prototxt Initial 2022-03-27 15:37:23 +00:00
README.md Reverted Pi changes due to terrible performance 2022-04-05 00:35:57 +00:00
requirements.txt Added requirements.txt 2022-05-03 00:18:55 +00:00

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