mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 11:40:54 +08:00
Motion detection for the webcam
This commit is contained in:
@@ -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++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user