From 8a3d079671a11070ce4d1666e910d600e6905a8e Mon Sep 17 00:00:00 2001 From: msp259 Date: Sun, 3 Dec 2023 12:18:52 -0500 Subject: [PATCH] new updates --- src/processrunner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/processrunner.py b/src/processrunner.py index 4c62e769..d8431659 100644 --- a/src/processrunner.py +++ b/src/processrunner.py @@ -57,7 +57,10 @@ def run_courtline_detect(self): self.run_video_render(homography) def get_res(self): - return format.results(self.state) + formatted_results = format.results(self.state) + with open("results.txt", "w") as file: + file.write(formatted_results) + return formatted_results def run_video_render(self, homography): """Runs video rendering and reencodes, stores to output_video_path_reenc."""