Last active
September 8, 2017 11:52
-
-
Save esc/320cc3260b466162f25dd46ad38ad52b to your computer and use it in GitHub Desktop.
GulpIO Blogpost Reading Example
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 the main interface for reading | |
from gulpio import GulpDirectory | |
# instantiate the GulpDirectory | |
gulp_directory = GulpDirectory('/tmp/something_something_gulps') | |
# iterate over all chunks | |
for chunk in gulp_directory: | |
# for each 'video' get the metadata and all frames | |
for frames, meta in chunk: | |
# do something with the metadata | |
for i, f in enumerate(frames): | |
# do something with the frames | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment