You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenCV version: 4.7.0.68
Operating System / Platform: macOS Ventura 13.1, Apple Macbook Air M1
Python version 3.9.15
Detailed description
When trying to set the window to fullscreen using cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN), the window shows a white screen instead of the webcam capture/image file that is being read. When the line of code is commented out, the window correctly shows webcam capture/image file.
Steps to reproduce
Webcam
import cv2
cap = cv2.VideoCapture(0)
cv2.namedWindow("Image", cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
while cap.isOpened():
success, image = cap.read()
cv2.imshow("Image", image)
if cv2.waitKey(1) & 0xFF == 27:
break
cv2.destroyAllWindows()
cap.release()