Closed joetech closed 1 year ago
os.listdir() doesn't respect the filename order, so this will sort the list before processing in order to keep the outputs in the same order as the inputs. Critical for video frame processing.
os.listdir()
Example without this change:
Adding image: 175.jpg Adding image: 169.jpg Adding image: 124.jpg Adding image: 138.jpg Adding image: 024.jpg
os.listdir()
doesn't respect the filename order, so this will sort the list before processing in order to keep the outputs in the same order as the inputs. Critical for video frame processing.Example without this change: