readStream: Capture video stream from camera

Description Usage Arguments Details Value See Also Examples

Description

This function captures a video stream from a camera and return a vpVideo object that can be manipulated using the videoplayR image and video manipulation toolbox. This function should support most webcams and other cameras supported by OpenCV.

Usage

1
readStream(cam = 0L)

Arguments

cam

The camera id number (default: 0).

Details

The vpStream object created by the readStream 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 vpVideo object.

See Also

release, readImg, readVideo, nextFrame, vpStream

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.