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?