Learn R Programming

Rbgs (version 0.2)

readvideo: Read a Video

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

readvideo(videoURL)

Arguments

videoURL

Path to the input video file

Value

A matrix of the grayscale frames.

Examples

Run this code
# NOT RUN {
##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)
# }

Run the code above in your browser using DataLab