반응형
def showImage(image, needResize = True):

    if needResize :
        shape = [1024,1024]
        image = cv2.resize(image, shape)

    # cv2.imshow("img" , image);
    # cv2.waitKey()
    # cv2.destroyAllWindows()

    window_name="Image View"
    cv2.namedWindow(window_name)
    cv2.moveWindow(window_name, 40, 30)
    cv2.imshow(window_name, image)
    cv2.waitKey()
    cv2.destroyAllWindows()
반응형

+ Recent posts