infinite loop

This commit is contained in:
2024-07-03 22:24:55 +02:00
parent a7b35c7a18
commit 02cb047163
+2 -1
View File
@@ -76,7 +76,8 @@ while True:
# Read a new frame # Read a new frame
ok, image = video.read() ok, image = video.read()
if not ok: if not ok:
break video.set(cv2.CAP_PROP_POS_FRAMES, 0)
continue
# Start timer # Start timer
timer = cv2.getTickCount() timer = cv2.getTickCount()