nextFrame: Grab the next frame from a video stream

Description Usage Arguments Details Value See Also Examples

Description

This function grabs the next available frame from a vpStream object and returns a vpImage object that can be manipulated using the videoplayR image and video manipulation toolbox.

Usage

1
nextFrame(stream)

Arguments

stream

The vpStream object from which the frame should be grabbed.

Details

The vpImage object created by the grabFrame function is not a persistent object, but a pointer to a C++ object that cannot be saved for reuse in a different session.

Value

This function returns a vpImage object.

See Also

readStream, release, vpStream, vpImage

Examples

1
2
3
4
stream <- readStream(0)
frame <- nextFrame(stream)
imshow(frame)
release(stream)

swarm-lab/videoplayR documentation built on May 30, 2019, 9:36 p.m.