Motion detection for the webcam

This commit is contained in:
Kees-V
2015-05-14 09:33:14 +02:00
parent 80928d0471
commit be40adcd51

View File

@@ -160,7 +160,8 @@ int main( int argc, const char** argv )
while (cap.read(frame)) while (cap.read(frame))
{ {
detectandshow(&alpr, frame, "", outputJson); if (framenum == 0) motiondetector.ResetMotionDetection(&frame);
detectandshow(&alpr, frame, "", outputJson);
sleep_ms(10); sleep_ms(10);
framenum++; framenum++;
} }