from os.path import isfile, join | |
# get file names of the frames | |
files = [f for f in os.listdir(pathIn) if isfile(join(pathIn, f))] | |
files.sort(key=lambda f: int(re.sub('\D', '', f))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment