Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created May 11, 2020 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/b73fa0c4a5f09b0209b8d396a935b00f to your computer and use it in GitHub Desktop.
Save prateekjoshi565/b73fa0c4a5f09b0209b8d396a935b00f to your computer and use it in GitHub Desktop.
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