Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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