Go wrapper of github.com/fsphil/fswebcam inspired by github.com/nimbleindustry/fswebcam.
go get this module, then execute setup.sh on the downloaded mod folder as follows
go get github.com/UedaTakeyuki/fswebcam
cd ~/go/pkg/mod/github.com/\!ueda\!takeyuki/fswebcam@*
sudo sh setup.sh
Import this module and call Capture() with fswebcam command line params start with fswebcam as follows.
import (
fw "github.com/UedaTakeyuki/fswebcam"
)
func main(){
// call Capture with fswebcam command line string
fw.Capture([]string{"fswebcam", "-d", "v4l2:/dev/video0", "kerokero.jpg")
}
- 1.0.0 2022.07.29 first version.