jabrena / skymapper

A REST API developed to help robots on local navigation tasks
MIT License
0 stars 0 forks source link

Store image in file from a webcam #1

Closed jabrena closed 9 years ago

jabrena commented 9 years ago

Example: https://github.com/SimonWaldherr/golang-examples/blob/master/expert/image.go

jabrena commented 9 years ago

http://golang.org/src/image/png/writer_test.go

jabrena commented 9 years ago

https://github.com/kfei/sshcam/blob/master/sshcam.go

jabrena commented 9 years ago

https://github.com/zoggdotorg/river/blob/master/main.go

jabrena commented 9 years ago

https://groups.google.com/forum/#!forum/golang-nuts

jabrena commented 9 years ago
/dev/video0: Found format: MJPG - MJPEG
/dev/video0: Found format: YUYV - YUV 4:2:2 (YUYV)
/dev/video0: requesting image format 640x480
/dev/video0: set image format to 176x144 using YUYV
Preparing 4 buffers for /dev/video0
[]uint8
jabrena commented 9 years ago

/usr/bin/streamer -c /dev/video0 -o frame.jpeg -s 1600x1200

cmd := exec.Command("/usr/bin/streamer", "-c", "/dev/video0", "-o", "frame.jpeg", "-s", "1600x1200")
        err := cmd.Run()
        if err != nil {
            log.Panic(err)
        }
jabrena commented 9 years ago

Take a look this note: https://github.com/blackjack/webcam/issues/2#issuecomment-141982187