Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.14 KB

File metadata and controls

48 lines (33 loc) · 1.14 KB

Latest pipeline run: Go

phantom

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
Loading

Once installed, you should be able to connect to your server through your VPN and stream from your video device.

prerequisite

  • 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

Getting started

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