Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. t = []
  2. for file in files:
  3. img = Image.open(file)
  4. width, height = img.size
  5. if width >= height:
  6. roi_width = height_original * 1/2
  7. roi_height = height_original * 1/2
  8. elif width < height:
  9. roi_width = width_original * 1/2
  10. roi_height = width_original * 1/2
  11.  
  12. t.append(findT(img, size=roi_size))
  13. return t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement