Learn R Programming

Rvision (version 0.4.3)

readFrame: Read Specific Video Frame

Description

Read a specific frame of a Video object and returns it as an Image object.

Usage

readFrame(x, pos)

Arguments

x

A Video object.

pos

An integer corresponding to the number of the frame to read.

Value

An Image object.

See Also

Video, Image

Examples

Run this code
# NOT RUN {
balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
plot(readFrame(balloon, 10))
plot(readNext(balloon))
release(balloon)
# }

Run the code above in your browser using DataLab