Is It Possible to Scale Image to Full Screen with OpenCV*?
Content Type: Troubleshooting | Article ID: 000088871 | Last Reviewed: 05/20/2022
import cv2
cv2.namedWindow("Window_name", cv2.WINDOW_NORMAL)
cv2.setWindowProperty("Window_name", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
img = cv2.imread(image.jpg, 1)
cv2.imshow("Window_name", img)
cv2.WINDOW_NORMAL fits window to full screen, but it doesn't support image resize. Hence, the image is not being scaled to full screen as the window.
Resize the image to the screen resolution before passing it to imshow().