How can I align my OpenCV output from the webcam at the centre of my screen. The visuals are always positioned at the top right corner. I want the position exactly at middle of the screen or at top middle area(exactly under the webcam).
I got an error from moveWindow
frame = vid.read()
frame = cv2.flip(frame, 1)
frame = imutils.resize(frame, width=cam_w, height=cam_h)
frame = cv2.moveWindow(vid, 40, 30)
#SystemError: <built-in function moveWindow> returned NULL without setting an error