In [5]:
import numpy as np
from PIL import Image, ImageOps, ImageChops
In [14]:
img = Image.open("../../home/media/poker/4h.png")
img
Out[14]:
In [24]:
img.rotate(45)
Out[24]:
In [23]:
img.rotate(90)
Out[23]:
In [25]:
img.rotate(135)
Out[25]:
In [26]:
img.rotate(180)
Out[26]:
In [29]:
img.rotate(225)
Out[29]:
In [30]:
img.rotate(270)
Out[30]:
In [31]:
img.rotate(315)
Out[31]:
In [32]:
img.rotate(360)
Out[32]: