Create videos from numpy arrays in a jupyter notebook
Project description
Video from numpy array in Jupyter Notebook
Create videos from numpy arrays in a jupyter notebook
Original source from Alexander Mordvintsev
Install
pip install notebook-video-writer
Dependencies
- Must have ffmpeg installed
Usage
import numpy as np
# optionally wrap with tqdm for progress bar
from tqdm import tqdm
from notebook_video_writer import VideoWriter
with VideoWriter(fps=40) as vw:
for i in tqdm(range(100)):
frame = np.random.rand(256,256,3)
vw.add(render)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for notebook-video-writer-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef45b4f7efeda2bccd31396660fafbd02c28dda467e98c72c011cc64363a3aff |
|
MD5 | 1264bc186aea27fbb8ade9fdd9419eca |
|
BLAKE2b-256 | 4c82d42fc09f99649851ac3285b7a5161fea0530f12a5f4c31b4c18fec0a8c7a |
Close
Hashes for notebook_video_writer-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f1e6008a0285f39c9cddc504d5d7865f4a598b92b0c0585574981099979a594 |
|
MD5 | 7e2e385283825704e94fec6d6250a351 |
|
BLAKE2b-256 | ef8ad717a891d1fb8816c8a681ea446bcc580402ff57ee80a14cccbdf75e6a4e |