From b61b4a693c204c1f3b6ce83f339f3aecb87dc27e Mon Sep 17 00:00:00 2001 From: Lukas Laaser Date: Thu, 7 Aug 2025 17:34:11 +0200 Subject: [PATCH] Bugfix: log --- jam_detection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jam_detection.py b/jam_detection.py index 1fc9218..cb1a850 100644 --- a/jam_detection.py +++ b/jam_detection.py @@ -38,8 +38,8 @@ class Jam_Detection: # Log-Daten in Datei schreiben with open(log_path, "a") as f: if file_empty: - f.write("camera, video, frame, timestamp, car_ratio,jam_score,number_of_detections\n") - f.write(f"{self.camera}, {os.path.basename(self.video)}, {self.frame}, {self.timestamp}, {detections}, {car_ratio}, {jam_score}\n") + f.write("camera, video, frame, timestamp, number_of_detections, car_ratio, jam_score, max_cars\n") + f.write(f"{self.camera}, {os.path.basename(self.video)}, {self.frame}, {self.timestamp}, {detections}, {car_ratio}, {jam_score}, {self.max_cars}\n") print(f"Saved log for Frame {self.frame}")