Advertisement
Guest User

Untitled

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