GoAway

module
v0.0.0-...-9b06675 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: MIT

README

GoAway - An OpenCV based motion detector written in Go

Go Report Card Documentation GitHub issues license

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()
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL