Skip to content

Can't display image on fullscreen on MacOS #804

@c6s0

Description

@c6s0

Expected behaviour

Displaying an image on fullscreen

Actual behaviour

cv2.imshow() function works fine in "window mode" but as soon as i try to display the image on fullscreen i just get a grey screen.
Same code works fine on windows.

Steps to reproduce

import cv2

img = 'test.png'
image = cv2.imread(img)
cv2.namedWindow('test', cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty('test', cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
cv2.imshow("test", image)
cv2.waitKey(0)
cv2.destroyAllWindows()
  • operating system: MacOS Ventura 13.2.1
  • architecture: M1 arm64
  • opencv-python version 4.5.5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions