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."""