From 02369184face95c4245eeff55f85da843100ec6e Mon Sep 17 00:00:00 2001 From: HellaJanssen <80407622+HellaJanssen@users.noreply.github.com> Date: Sun, 22 Jun 2025 13:46:21 +0200 Subject: [PATCH] Added a sleep in order to run the output close to real time --- hedgehogbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hedgehogbox.py b/hedgehogbox.py index 98084f2..0f29075 100644 --- a/hedgehogbox.py +++ b/hedgehogbox.py @@ -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