Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = []
- for file in files:
- img = Image.open(file)
- width, height = img.size
- if width >= height:
- roi_width = height_original * 1/2
- roi_height = height_original * 1/2
- elif width < height:
- roi_width = width_original * 1/2
- roi_height = width_original * 1/2
- t.append(findT(img, size=roi_size))
- return t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement