Bugfix: log

This commit is contained in:
2025-08-07 17:34:11 +02:00
parent 019c2b095b
commit b61b4a693c
+2 -2
View File
@@ -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}")