Created
December 2, 2019 21:57
-
-
Save jeremy-rutman/95bc82cc14b33c6b14899917ccb35f86 to your computer and use it in GitHub Desktop.
convert sreies of images to video
This file contains hidden or 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
| import cv2 | |
| #MJPG , DIVX , and H264 | |
| fourcc = cv2.VideoWriter_fourcc(*'XVID') | |
| out = cv2.VideoWriter('output.avi', fourcc, 20.0, (W, H)) | |
| for img_arr in img_arr_list: | |
| out.write(img_arr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment