diff --git a/Code/Control/Laptop_Code/ball_detection/ball_detection.py b/Code/Control/Laptop_Code/ball_detection/ball_detection.py index fbea8d2bcced3ad7bbaec728c441360468b88836..3a012883947f54a5341b1ec735289bb5b7f60854 100644 --- a/Code/Control/Laptop_Code/ball_detection/ball_detection.py +++ b/Code/Control/Laptop_Code/ball_detection/ball_detection.py @@ -129,7 +129,8 @@ def detectLive(url , model, minDetectionScore = 0.90, showSight = True): cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 3) if showSight: - cv2.imshow('Ball Detection', frame) + resized_frame = cv2.resize(frame,(400,300)) + cv2.imshow('Ball Detection', resized_frame) key = cv2.waitKey(1) & 0xFF dist = int(dist)