from PIL import Image import numpy as np #封装一个图像处理类 class TestNumpy(object): def photo2paint(self,img_url): # 读取图片 my_photo = np.asarray(Image.open(img_url).convert("L")).astype(... Read More
posted @ 2019-03-09 09:52 Xcsg Views(763) Comments(0) Diggs(0) Edit