cv2.namedWindow('window_name', cv2.WINDOW_NORMAL)
cv2.setWindowProperty('window_name', cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
在cv2.imshow()之前加入上述代码,图像显示就会占满整个屏幕
cv2.namedWindow('window_name', cv2.WINDOW_NORMAL)
cv2.setWindowProperty('window_name', cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
在cv2.imshow()之前加入上述代码,图像显示就会占满整个屏幕