Created
May 11, 2020 11:08
-
-
Save prateekjoshi565/b73fa0c4a5f09b0209b8d396a935b00f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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