Advertisement
brandblox

ImgLab-1-(25-9-24)

Sep 25th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. from PIL import Image
  2. import cv2
  3. img = Image.open('peter.jpg')
  4. rotated_img = img.rotate(90)
  5. rotated_img2 = img.transpose(Image.ROTATE_90)
  6. rotated_img.show()
  7. rotated_img2.show()
  8. cv2.waitKey(0)
  9. cv2.destroyAllWindows()
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement