Bugfix: log creation

This commit is contained in:
2025-08-07 17:17:54 +02:00
parent 7153cc6884
commit 019c2b095b
+1 -1
View File
@@ -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}")