Assignment 1 A.I.
from PIL import Image
import numpy as np
f=np.array(Image.open('FILENAME'))
f[:9,:9]=255
f=Image.fromarray(f)
f.save('NEWNAME')
f.show()
import numpy as np
f=np.array(Image.open('FILENAME'))
f[:9,:9]=255
f=Image.fromarray(f)
f.save('NEWNAME')
f.show()
Comments
Post a Comment