Skip to content

Turn your micro-computer into a homemade camera with this small API. Stream video device over http for Home automation using a Raspberry Pi.

License

Notifications You must be signed in to change notification settings

bugbundle/phantom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Turn your micro-computer into a homemade camera with this small API. Stream video device over http for Home automation using a Raspberry Pi.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •