Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 407 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 407 Bytes

Camera/Video HTTP Server in Golang

Install OpenCV for Go

$ go get -u -d gocv.io/x/gocv
$ cd $GOPATH/src/gocv.io/x/gocv
$ make install

Run it

# serve the default webcam /dev/video0 
$ go run main.go 

# serve an ip camera stream
$ go run main.go rstp://camera_ip:554/

# serve another a usb camera
$ go run main.go /dev/video1