Answers for "displaying cv2.imshow on specific window position"

0

displaying cv2.imshow on specific window position

img = cv2.imread("test.png")
winname = "Test"
cv2.namedWindow(winname)        # Create a named window
cv2.moveWindow(winname, 40,30)  # Move it to (40,30)
cv2.imshow(winname, img)
cv2.waitKey()
cv2.destroyAllWindows()
Posted by: Guest on August-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language