图像的手绘效果(PIL的应用实例)

图像的变换: 原图像: 1.读入图像后,获得像素RGB值(所有RGB值取反),修改后保存为新的文件 from PIL import Image import numpy as np im=np.array(Image.open("D:/pytest/a.jpeg")) print(im.shape,im.dtype) b=[255,255,255] -im newim=Image.fromarra
相关文章
相关标签/搜索