Skip to content

Instantly share code, notes, and snippets.

@jumpinjan
jumpinjan / capturevideo.go
Created June 10, 2018 13:51
Capital Go - Capture Video Using GoCV
func kiosk() {
webcam, err := gocv.VideoCaptureDevice(0)
if err != nil {
log.Fatalln("can't find camera")
}
// prepare image matrix
img := gocv.NewMat()
defer img.Close()