Stream-class | R Documentation |
A Stream
object contains an OpenCV
stream that originates from a camera connected to the computer.
Function for creating Stream
objects from video
streams.
stream(..., api = "ANY")
... |
Either:
|
api |
A character string corresponding to the API to use for reading the stream from the camera (see Note; default: "ANY"). |
A Stream
object.
dim,ncol,nrow
Functions returning the dimensions of the object.
get,set
Functions to access and set internal properties of the object.
isOpened
Function to check the status of the camera stream.
readNext
Functions to access the next frame in the stream.
release
Function to release the object from memory.
Hereafter is a list of all supported APIs. Note that not all APIs will be available on your computer (actually most of them will not be).
automatically select an API.
Video For Windows.
Video For Linux.
IEEE 1394 drivers.
Quicktime.
Unicap drivers.
DirectShow.
PvAPI, Prosilica GigE SDK.
OpenNI (for Kinect).
OpenNI (for Asus Xtion).
XIMEA Camera API.
AVFoundation framework for iOS and OSX > Lion.
Smartek Giganetix GigEVisionSDK.
Microsoft Media Foundation.
Microsoft Windows Runtime using Media Foundation.
Intel Perceptual Computing SDK.
OpenNI2 (for Kinect).
OpenNI2 (for Asus Xtion and Occipital Structure sensors).
gPhoto2 connection.
GStreamer.
FFMPEG library.
OpenCV Image Sequence.
Aravis SDK.
Built-in OpenCV MotionJPEG codec.
Intel MediaSDK.
Simon Garnier, garnier@njit.edu
stream
, queue
## Not run:
live <- stream(0)
release(live)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.