There is 2498 images(with index from 0 to 2497) in a folder which its address is inserted at'image_folder'. the format of images names is as [STFT_Train_0, STFT_Train_1,...., STFT_Train_2497]
. i've tried to import these images by Considering the order of the indexes but the code which is shown below import images without considering the order of image indexes. Thanks if anyone can help to import them by considering image index order and convert them to numpy array.
image_folder = 'D:\\thesis\\Paper 3\\Feature Extraction\\two_dimension_Feature_extraction\\STFT_Feature\\STFT_Train'
images = [img for img in os.listdir(image_folder) if img.endswith(".png")]