From be40adcd5102b49004f62369e5f423846e1abfaa Mon Sep 17 00:00:00 2001 From: Kees-V Date: Thu, 14 May 2015 09:33:14 +0200 Subject: [PATCH] Motion detection for the webcam --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 67a5612..3ec4a11 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -160,7 +160,8 @@ int main( int argc, const char** argv ) while (cap.read(frame)) { - detectandshow(&alpr, frame, "", outputJson); + if (framenum == 0) motiondetector.ResetMotionDetection(&frame); + detectandshow(&alpr, frame, "", outputJson); sleep_ms(10); framenum++; }