readvideo: Read a Video

Description Usage Arguments Value Examples

Description

This function takes as input URL of the video. It can return maximum hundred frames of the video in which each frame is resized to 100 X 100 pixel image. If the video contains less than hundred frames. then it will return all the frames otherwise it will automatically return first hundred frames. Frames returned are grayscale frames.

Usage

1
readvideo(videoURL)

Arguments

videoURL

Path to the input video file

Value

A matrix of the grayscale frames.

Examples

1
2
3
##Save the URL of the video file into R session and then load videoframes
videoURL <- system.file("extdata","daria_skip.avi",package = "Rbgs")
frames <- readvideo(videoURL)

Rbgs documentation built on May 1, 2019, 8:48 p.m.

Related to readvideo in Rbgs...