From 1d99f3887654613dc1298f41d6663154341472a8 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Sat, 2 Aug 2025 04:27:09 +0200 Subject: [PATCH] Do not skip frames --- tracker.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tracker.py b/tracker.py index b11ca20..73d251c 100644 --- a/tracker.py +++ b/tracker.py @@ -15,7 +15,6 @@ STREAMS = { "Kasse 2": "http://192.168.11.230:8080?action=stream", } -FRAME_SKIP = 2 model = YOLO("yolo_weights/yolo11n.pt") latest_frames = {} @@ -26,7 +25,6 @@ def process_stream(stream_id, url): line_orientation = "vertical" counter = Counter(stream_id, line_orientation, metrics) cap = cv2.VideoCapture(url) - frame_idx = 0 while cap.isOpened(): ret, frame = cap.read() @@ -36,9 +34,6 @@ def process_stream(stream_id, url): height, width, _ = frame.shape - frame_idx += 1 - if frame_idx % FRAME_SKIP != 0: - continue try: results = model.track(