Python OpenCV – resizeWindow() Function
resizeWindow() method in Python OpenCV is used to resize window displaying images/videos to a specific size. The specified window size is for images excluding toolbars. This only works for created windows having flags other than CV_WINDOW_AUTOSIZE.
Syntax: cv2.resizeWindow(window_name, width, height)
- window_name: Name of the window that will display image/video
- width: New window width (integer type)
- height: New window height (integer type)
Return Value: It doesn’t return anything
Image used for below examples:
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course