video_dataset {tfio} | R Documentation |
Create a VideoDataset
that reads the video file.
Description
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.
Usage
video_dataset(filenames)
Arguments
filenames |
A |
Examples
## 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)
[Package tfio version 0.4.1 Index]