From a47be224aa99a203f9478d1975080451cce59d80 Mon Sep 17 00:00:00 2001 From: Ishaan Datta Date: Fri, 6 Dec 2024 23:21:29 -0800 Subject: [PATCH] larger delay --- .../src/python_workspace/python_workspace/extermination_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros2_ws/src/python_workspace/python_workspace/extermination_node.py b/ros2_ws/src/python_workspace/python_workspace/extermination_node.py index 835a192..2abe835 100644 --- a/ros2_ws/src/python_workspace/python_workspace/extermination_node.py +++ b/ros2_ws/src/python_workspace/python_workspace/extermination_node.py @@ -57,7 +57,7 @@ def inference_callback(self, msg): if self.use_display_node: cv2.imshow(self.window, final_image) - if cv2.waitKey(0.1) & 0xFF == ord('q'): # Press 'q' to close the window + if cv2.waitKey(1) & 0xFF == ord('q'): # Press 'q' to close the window cv2.destroyAllWindows() self.use_display_node = False