[英]How to make `cv2.imshow()` window fit in the screen?
For a very large image, cv2.imshow()
makes the window larger than the screen. 对于非常大的图像, cv2.imshow()
使窗口大于屏幕。 Is there a way to make it fit to the screen? 有没有办法使其适合屏幕? I use Mac OS X. Thanks. 我使用Mac OSX。谢谢。
It seems that this will do the trick. 看来这可以解决问题。
cv2.namedWindow('window', cv2.WINDOW_NORMAL)
cv2.imshow('window', img)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.