Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def resize_img(img):
- wpercent = (img_shape[0] / float(img.size[0]))
- hsize = int((float(img.size[1]) * float(wpercent)))
- img = img.resize((img_shape[0] , hsize), PIL.Image.ANTIALIAS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement