From 300367c00ba9d7166e9fa73bbe8891bb957b031a Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Thu, 29 Oct 2020 03:18:36 +0000 Subject: [PATCH] no really, I fixed the initialization bug --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d6adbe1..70dd722 100644 --- a/main.go +++ b/main.go @@ -56,12 +56,13 @@ func main() { fmt.Printf("Start reading device: %v\n", deviceID) - // This is a warm up ladies and gentlemen. + // This is a warm up ladies and gentlemen. for i := 0; i < 20; i++ { if ok := webcam.Read(&img); !ok { fmt.Printf("Device closed: %v\n", deviceID) return } + detectMotion(img) } // main loop