from pickletools import uint8 import numpy as np from PIL import Image image=Image.open('flower.jpg') arr=np.array(image) #arr[:,:]=[,,0] print(arr.shape) print(arr.dtype) print(arr.size) print(arr) img=Image.fromarray(arr) #img.save('flowerr.png',arr) img.show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)