Stream video from usb device over the web. It is about turning an old Raspberry Pi, with a video device (USB, PCI, etc.), into a home camera.
architecture-beta
group vpn(cloud)[Private network]
junction disksplit
service api(server)[api] in vpn
service os(disk)[System Storage] in vpn
service storage(disk)[Video Storage] in vpn
api:R -- L:disksplit
os:B -- T:disksplit
storage:T -- B:disksplit
Once installed, you should be able to connect to your server through your VPN and stream from your video device.
- gocv
- opencv4 (gocv dependency)
In order to install opencv4 you can either rely on your system package manager or compile it directly using:
cd $GOPATH/gocv.io/x/gocv
make install
Build the container
podman build -t phantom:$(git describe) .
Run the container
podman run --device /dev/video0 -p 8080:8080 localhost/phantom:$(git describe) /app/main