diff --git a/assets/TrafficLightDetection/setupexample.png b/assets/TrafficLightDetection/setupexample.png index 4124ab4b4..12034c12c 100644 Binary files a/assets/TrafficLightDetection/setupexample.png and b/assets/TrafficLightDetection/setupexample.png differ diff --git a/plugins/TrafficLightDetection/screen_capture_setup.py b/plugins/TrafficLightDetection/screen_capture_setup.py index 1fe9bf0d8..b5c792e9f 100644 --- a/plugins/TrafficLightDetection/screen_capture_setup.py +++ b/plugins/TrafficLightDetection/screen_capture_setup.py @@ -62,7 +62,7 @@ def make_button(text="NONE", x1=0, y1=0, x2=100, y2=100, round_corners=30, butto cv2.namedWindow('Example Image', cv2.WINDOW_NORMAL) exampleimage_width = exampleimage.shape[1] exampleimage_height = exampleimage.shape[0] -cv2.resizeWindow('Example Image', round(exampleimage_width/2), round(exampleimage_height/2)) +cv2.resizeWindow('Example Image', round(frame_width/2.5), round(frame_width/5.93)) cv2.imshow('Example Image', exampleimage) cv2.imshow('TrafficLightDetection - Screen Capture Setup', startframe) cv2.waitKey(1) @@ -129,7 +129,7 @@ def CreateSettings(category:str, name:str, data:any): cv2.namedWindow('Example Image', cv2.WINDOW_NORMAL) exampleimage_width = exampleimage.shape[1] exampleimage_height = exampleimage.shape[0] - cv2.resizeWindow('Example Image', round(exampleimage_width/2), round(exampleimage_height/2)) + cv2.resizeWindow('Example Image', round(frame_width/2.5), round(frame_width/5.93))) try: window_x, window_y, window_width, window_height = cv2.getWindowImageRect('TrafficLightDetection - Screen Capture Setup')