For a project i need to display an image fullscreen on mac os. But i just get a grey fullscreen and everything freezes (reboot required). I am not sure if this problem is related to opencv-python on MacOS or if i'm missing something on how to display fullscreen images on MacOS. If there are other ways to display the image with another dependency im open to that.
My code:
import cv2
im = cv2.imread("image.png")
cv2.namedWindow("test", cv2.WINDOW_NORMAL)
cv2.setWindowProperty("test", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
cv2.imshow("test", im)
cv2.waitKey()
cv2.destroyWindow("test")
I tried different versions of opencv-python and different code. The cv2.imshow()
function seems to work fine when displaying an windowed image, but as soon as i try to display it fullscreen everything freezes.