From 3b7e0835519276f60fbffdab4a846f592a112a10 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Fri, 8 Aug 2025 21:23:57 +0200 Subject: [PATCH 1/2] Update urls --- tracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracker.py b/tracker.py index 73d251c..c5062b5 100644 --- a/tracker.py +++ b/tracker.py @@ -11,8 +11,8 @@ from metrics import get_metrics registry, metrics = get_metrics() STREAMS = { - "Kasse 1": "http://192.168.11.76:8080?action=stream", - "Kasse 2": "http://192.168.11.230:8080?action=stream", + "Kasse 1": "http://192.168.96.51:8080?action=stream", + "Kasse 2": "http://192.168.96.52:8080?action=stream", } model = YOLO("yolo_weights/yolo11n.pt") From d45f64939a6a7a80c1693a7ad3d1cf31f3e9ef64 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Fri, 8 Aug 2025 21:25:36 +0200 Subject: [PATCH 2/2] Use horizontal line --- tracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracker.py b/tracker.py index c5062b5..de80d50 100644 --- a/tracker.py +++ b/tracker.py @@ -3,7 +3,7 @@ import threading import time from ultralytics import YOLO from utils.counter import Counter -from utils.zones import draw_count_line_vertical +from utils.zones import draw_count_line_horizontal, draw_count_line_vertical from collections import defaultdict from metrics import get_metrics @@ -22,7 +22,7 @@ latest_frames = {} def process_stream(stream_id, url): print(f"PROCESS STREAM {stream_id} from {url}") - line_orientation = "vertical" + line_orientation = "horizontal" counter = Counter(stream_id, line_orientation, metrics) cap = cv2.VideoCapture(url)