Created
April 20, 2020 09:47
-
-
Save prateekjoshi565/10d5b520a5f51dcaab5f809364df8c6d 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
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