result= Image.new("RGB", (w, h))
img = np.zeros((h,w), dtype='uint8') result = Image.fromarray(img,mode="RGB")
result= Image.new("L", (w, h))
img = np.zeros((h,w), dtype='uint8') result = Image.fromarray(img,mode="L")
京公网安备 11010502049817号