Added a sleep in order to run the output close to real time

This commit is contained in:
HellaJanssen 2025-06-22 13:46:21 +02:00
parent 3f114dd792
commit 02369184fa

View file

@ -3,6 +3,7 @@ from pathlib import Path
import cv2
import imutils
import time
def main():
@ -47,6 +48,7 @@ def main():
# exit if 's' key is pressed
if cv2.waitKey(1) & 0xFF == ord('s'):
break
time.sleep(0.03)
else:
print("Could not read frame!")
break