infinite loop
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user