Hey everyone!
I am attaching here a little code which is responsible for converting the image arrays back into an image, and saving it into a new folder.
It's working fine but, as it can be seen in the file attached the name is really funny . I want to improve my code for getting the correct name.
patch_list is an list which contains all the images as array inside it.
Any kind of help will be appreciated.
Thankyou!
CODE SNIPPET :
for i in patch_list:
m=Image.fromarray(i,mode = None)#converting_the_patch_into_an_array
m.show()
m.save('patches/{}_{}'.format(i,format))
OUTPUT :
File attached in the output.