Skip to content

Instantly share code, notes, and snippets.

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