Description Usage Arguments Examples
View source: R/video_dataset.R
This allows a user to read data from a video file with ffmpeg. The output of VideoDataset is a sequence of (height, weight, 3) tensor in rgb24 format.
1 | video_dataset(filenames)
|
filenames |
A |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
dataset <- video_dataset(
filenames = list("testdata/small.mp4")) %>%
dataset_repeat(2)
sess <- tf$Session()
iterator <- make_iterator_one_shot(dataset)
next_batch <- iterator_get_next(iterator)
until_out_of_range({
batch <- sess$run(next_batch)
print(batch)
})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.