Learn R Programming

Rvision (version 0.6.0)

stream: Create an Object of Class Stream

Description

Function for creating Stream objects from video streams.

Usage

stream(index = 0, api = "ANY")

Arguments

index

An integer value corresponding to the index of the camera to read a stream from (default: 0; 0 is usually the default webcam on most computers).

api

A character string corresponding to the API to use for reading the stream from the camera (see Note; default: "ANY").

Value

A Stream object.

Examples

Run this code
# NOT RUN {
live <- stream(0)
release(live)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab