README ¶ GoAway - An OpenCV based motion detector written in Go Complete examples can be found in the /examples subdirectory of this repository Simple Usage package main import ( "github.com/adrianosela/GoAway/detector" ) func main() { md, err := detector.NewMotionDetector(0, "Motion Detector", nil) defer md.Close() if err != nil { /* handle error */ } md.Start() } With On-Detect Function import ( "github.com/adrianosela/GoAway/detector" ) func main() { md, err := detector.NewMotionDetector(0, "Motion Detector", func() { // do this whenever motion is detected // e.g. log, send yourself an email, etc... }) defer md.Close() if err != nil { /* handle error */ } md.Start() } Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis detector examples notify-by-email simple Click to show internal directories. Click to hide internal directories.