Created
May 11, 2020 10:28
-
-
Save prateekjoshi565/c1a1bc8783164cec41a4b44305bf3290 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
# get file names of frames | |
col_frames = os.listdir('frames/') | |
col_frames.sort(key=lambda f: int(re.sub('\D', '', f))) | |
# load frames | |
col_images=[] | |
for i in tqdm_notebook(col_frames): | |
img = cv2.imread('frames/'+i) | |
col_images.append(img) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment