Last active
June 18, 2019 12:42
-
-
Save nfsrules/595756aa800d8f6f351ae1256a54af61 to your computer and use it in GitHub Desktop.
Video writing with OpenCV
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
# Create video writer | |
writer = cv2.VideoWriter("sample_output.avi", | |
cv2.VideoWriter_fourcc(*"MJPG"), | |
30,(1800,480)) | |
for frame in tqdm(merged_maps): | |
writer.write(frame.astype('uint8')) | |
writer.release() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment