1

This is an odd little thing. I'm using OpenCV 2.4.2 (brew build on OSX 10.7), cv2 bindings, and going by the OpenCV documentation, I've tried both:

cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)
cv2.setWindowProperty("Image", cv2.CV_WND_PROP_FULLSCREEN, cv2.CV_WINDOW_FULLSCREEN)

Both return that cv2 doesn't have this attribute. I assume they just haven't been added to the cv2 bindings yet. Is there a way to get around this?

1 Answer 1

2

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

cv2.setWindowProperty("Image", cv2.WND_PROP_FULLSCREEN, cv2.cv.CV_WINDOW_FULLSCREEN)
Sign up to request clarification or add additional context in comments.

2 Comments

Mostly right, though there was one small edit to your answer. Instead of cv2.cv.WINDOW_FULLSCREEN, I needed cv2.cv.CV_WINDOW_FULLSCREEN. Where in the documentation did you find this and how do you see which attributes are actually available?
I use IPython, so when you press tab button, it shows all the available attributes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.