Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2, glob
- images = glob.glob("*.png")
- print(images)
- for image in images:
- print("Hello")
- img = cv2.imread(image, -1)
- re=cv2.resize(img, (int(img.shape[1]*2), int(img.shape[0]*2)))
- cv2.imshow("Checking", re)
- cv2.waitKey(500)
- cv2.destroyAllWindows()
- cv2.imwrite("resized_"+image, re)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement