From 019c2b095ba62163ef9bdce2e6d24f4cd902e100 Mon Sep 17 00:00:00 2001 From: Lukas Laaser Date: Thu, 7 Aug 2025 17:17:54 +0200 Subject: [PATCH] Bugfix: log creation --- jam_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jam_detection.py b/jam_detection.py index f5b0ed2..1fc9218 100644 --- a/jam_detection.py +++ b/jam_detection.py @@ -39,7 +39,7 @@ class Jam_Detection: 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(f"{self.camera}, {os.path.basename(self.video)}, {self.frame}, {self.timestamp}, {detections}, {car_ratio}, {jam_score}\n") print(f"Saved log for Frame {self.frame}")