user1424739
user1424739

Reputation: 13785

How to make `cv2.imshow()` window fit in the screen?

For a very large image, cv2.imshow()makes the window larger than the screen. Is there a way to make it fit to the screen? I use Mac OS X. Thanks.

Upvotes: 0

Views: 646

Answers (1)

user1424739
user1424739

Reputation: 13785

It seems that this will do the trick.

cv2.namedWindow('window', cv2.WINDOW_NORMAL)
cv2.imshow('window', img)

Upvotes: 1

Related Questions