load_video: Loading Video

Description Usage Arguments Value Author(s) Examples

View source: R/load_video.R

Description

load specified frames of video

Usage

1
load_video(video, frames, nb_frames, step = 1, maxSize = 1)

Arguments

video

path to a video file

frames

a numeric vecotr that specfies a frame or a numeric vector that specifies start frame and end frame. if frames is missing, try to load all frames.

nb_frames

the number of frames. if nb_frames is missing, info_video(video)$frames is used.

step

step value for frame reading.

maxSize

maximum allowed size in memory, in GB.

Value

a cimg object

Author(s)

Shota Ochi

Examples

1
2
3
counts <- system.file("extdata", "counts.gif", package = "videor")
load_video(counts, c(2,7))
load_video(counts, c(2,7), step = 2)

ShotaOchi/videor documentation built on Dec. 29, 2019, 10:08 a.m.