Python OpenCV - moveWindow() Function Last Updated : 03 Jan, 2023 Comments Improve Suggest changes Like Article Like Report When we show the image using the imshow() function output window will open at the center or default position of a computer screen. Even if there are multiple image windows all windows will be displayed at the same position and we have to move windows manually. If we want to show image windows at a specific position moveWindow() function of OpenCV will do it. Syntax: cv2.moveWindow(window_Name,x,y) Parameters: window_name: name of the window which you want to move at particular positionx: Value of x coordinatey: Value of y coordinate Return: None Example 1: Image with a specific position In this example, we will display only one window at a particular position. Used image: Code: Python3 # Import OpenCV library import cv2 # Read an Image img = cv2.imread("Documents/geekslogo.png", cv2.IMREAD_COLOR) # Display image using imshow() function cv2.imshow("I2", img) # Move window to (10,50) position # using moveWindow() function cv2.moveWindow("I2", 10, 50) # Wait for user to press any key cv2.waitKey(0) # Close all opened windows cv2.destroyAllWindows() Output: Example 2: Multiple images in different positions In this example, we will display Multiple windows at a particular position. Used image: Python3 # Import OpenCV library import cv2 # Read four Images img1 = cv2.imread("Documents/geekslogo.png", cv2.IMREAD_COLOR) img2 = cv2.imread("Documents/geekslogo2.png", cv2.IMREAD_COLOR) img3 = cv2.imread("Documents/geekslogo3.png", cv2.IMREAD_COLOR) img4 = cv2.imread("Documents/geekslogo4.png", cv2.IMREAD_COLOR) # Display images using imshow() function cv2.imshow("I1", img1) cv2.imshow("I2", img2) cv2.imshow("I3", img3) cv2.imshow("I4", img4) # Move window to (10,50) position # using moveWindow() function cv2.moveWindow("I1", 10, 50) cv2.moveWindow("I2", 650, 50) cv2.moveWindow("I3", 10, 500) cv2.moveWindow("I4", 650, 500) # Wait for user to press any key cv2.waitKey(0) # Close all opened windows cv2.destroyAllWindows() Output: Comment More infoAdvertise with us Next Article Python OpenCV - moveWindow() Function P patildhanu4111999 Follow Improve Article Tags : Python OpenCV Python-OpenCV Practice Tags : python Similar Reads Python OpenCV - namedWindow() Function Python OpenCV namedWindow() method is used to create a window with a suitable name and size to display images and videos on the screen. The image by default is displayed in its original size, so we may need to resize the image for it to fit our screen. Created windows are referred by their names and 3 min read Python OpenCV - getWindowImageRect() Function Python OpenCV getWindowImageRect() Function returns the client screen coordinates, along with the width and height of the window containing the picture. Syntax of cv2.getWindowImageRect() Syntax: cv2.getWindowImageRect(window_name) Parameter: window_name - Name of the window displaying image/video 3 min read Python - Move() function in wxPython In this particular article we will learn, how can we move our window to a particular point. This can be achieved using Move() function in wx.Window class of wxPython. Move() takes x and y points to move window to a particularx, y point. Syntax : wx.Move(self, x, y, flags=SIZE_USE_EXISTING) Parameter 1 min read Python OpenCV - getTrackbarPos() Function getTrackbarPos() is Function in Python OpenCV that returns the current position of the specified trackbar. It takes two arguments. The first is for the trackbar name and the second one is the window name which is the parent of the trackbar. Returns the trackbar position. Syntax : cv.getTrackbarPos(t 2 min read Python OpenCV - waitKey() Function waitkey() function of Python OpenCV allows users to display a window for given milliseconds or until any key is pressed. It takes time in milliseconds as a parameter and waits for the given time to destroy the window, if 0 is passed in the argument it waits till any key is pressed. Example: Pythonim 2 min read Python OpenCV - waitKeyEx() Function Python OpenCv waitKeyEx() method is similar to waitKey() method but it also returns the full key code. The key code which is returned is implementation-specific and depends on the used backend: QT/GTK/Win32/etc. Syntax: cv2.waitKey(delay) Parameters: delay: The time in milliseconds after which windo 2 min read Python OpenCV - selectroi() Function In this article, we are going to see an interesting application of the OpenCV library, which is selectROI(). With this method, we can select a range of interest in an image manually by selecting the area on the image. Syntax: cv2.selectROI(Window_name, source image) Parameter: window_name:  name of 3 min read Python OpenCV | cv2.imshow() method OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.imshow() method is used to display an image in a window. The window automatically fits the image size. Syntax: cv2.imshow(window_name, image)Parameters: window_name: A string representing the name of the wi 3 min read 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 1 min read Python OpenCV | cv2.blur() method OpenCV-Python is a library of Python bindings designed to solve computer vision problems. cv2.blur() method is used to blur an image using the normalized box filter. The function smooths an image using the kernel which is represented as: Syntax: cv2.blur(src, ksize[, dst[, anchor[, borderType]]]) Pa 2 min read Like