Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created April 20, 2020 09:47
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/10d5b520a5f51dcaab5f809364df8c6d to your computer and use it in GitHub Desktop.
Save prateekjoshi565/10d5b520a5f51dcaab5f809364df8c6d to your computer and use it in GitHub Desktop.
files.sort(key=lambda f: int(re.sub('\D', '', f)))
for i in range(len(files)):
filename=pathIn + files[i]
#read frames
img = cv2.imread(filename)
height, width, layers = img.shape
size = (width,height)
#inserting the frames into an image array
frame_array.append(img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment