Skip to content

Instantly share code, notes, and snippets.

@nfsrules
Last active June 18, 2019 12:42
Show Gist options
  • Save nfsrules/595756aa800d8f6f351ae1256a54af61 to your computer and use it in GitHub Desktop.
Save nfsrules/595756aa800d8f6f351ae1256a54af61 to your computer and use it in GitHub Desktop.
Video writing with OpenCV
# 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