def show_image(img, ms = 0): cv2.namedWindow("Window", cv2.WINDOW_NORMAL) cv2.imshow("Window", img) cv2.waitKey(ms) cv2.destroyAllWindows()