Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import cv2, glob
  2.  
  3. images = glob.glob("*.png")
  4.  
  5. for image in images:
  6. img = cv2.imread(image, -1)
  7. re=cv2.resize(img, (int(img.shape[1]*2), int(img.shape[0]*2)))
  8. cv2.imwrite("resized_"+image, re)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement