Ask Your Question
3

How to display fullscreen in Python on Linux? (setWindowProperty doesn't work)

asked 2012-12-05 14:59:59 -0600

chriszuma gravatar image

updated 2018-09-01 03:24:07 -0600

This seems like it should be very simple, but I can't find any explanation of how to do it. I tried these and neither worked:

cv2.setWindowProperty("display",cv.WND_PROP_FULLSCREEN, cv.WINDOW_FULLSCREEN)
cv2.setWindowProperty("display",cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

I just keep getting this error message: AttributeError: 'module' object has no attribute 'WND_PROP_FULLSCREEN'

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
4

answered 2013-01-08 15:35:46 -0600

As you can see there's only cv2.CV_WINDOW_AUTOSIZE attribute available. To use FULLSIZE attribute, you need to use cv2.cv module.

cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.cv.WINDOW_FULLSCREEN)
edit flag offensive delete link more

Comments

Wow, this feels like a design flaw.

SR gravatar imageSR ( 2013-01-08 15:53:23 -0600 )edit

i tried using this, then the window launches as full screen but the video is same old 640x320. How to change that ?

utkarshmankad gravatar imageutkarshmankad ( 2014-09-12 05:17:15 -0600 )edit
-3

answered 2012-12-06 14:16:41 -0600

chriszuma gravatar image

updated 2012-12-06 14:17:13 -0600

Seriously? Is there no answer to this? I really don't want to change imaging libraries at this point over something so trivial.

Come on. Anyone?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-05 14:59:59 -0600

Seen: 7,498 times

Last updated: Jan 08 '13