When executing an OpenCV python script containing: cv2.imshow(img) the resulting window opens behind my terminal window. This is a mild irritation - is there an
cv2.imshow(img)
Open a namedWindow before imshow, for instance:
namedWindow
imshow
cv2.namedWindow('ImageWindowName', cv2.WINDOW_NORMAL) cv2.imshow('ImageWindowName',img) cv2.waitKey(0) cv2.destroyAllWindows()
Comment if this makes any different.