numpy.transpose

2019-10-07  本文已影响0人  SnorlaxSE
import numpy as np 
from PIL import Image


img = Image.open('snorlax.jpeg')
img.show()
snorlax.jpeg
convert_img = Image.fromarray(convert)
convert_img.show()
# convert_img.save('snorlax_transpose.jpeg'')
snorlax_transpose.jpeg

即,将图像向左旋转90°

上一篇下一篇

猜你喜欢

热点阅读