How to save multiple images in .npy?

There is a loop, at each iteration, which processed a single image from a folder of pictures:
for file_name in os.listdir(images_set):
 img = imread(file_name)
 img = rgb2gray(img)

Required: to put the edited image in .npy, and then the next picture from the series on the same .npy and so on.
How to do it?
June 5th 19 at 21:08
1 answer
June 5th 19 at 21:10

Find more questions by tags image processingNumPyPILPython