I have 40k images in a folder. The file names follow the following pattern:
1558058263_18ea873ddcf8c65e.jpg 1558408930_63c29ce4462ec194.jpg 1558062887_18ea873ddcf8c65e.jpg
In this the first part of the file name is the time stamp and the second part is the machine id that generated the image.
I want to process each of these files in a sequential order based on only the time stamp. How can I take the files sequentially for processing. I am using python3 for selecting the files. The current code is as follows:
for root, dirs, files in os.walk(path): for name in files: img=fr.load_image_file('/home/ubuntu/faces/' + name)