VideoCaptureFromCamera Method (Int32)
|
Allocates and initialized the CvCapture structure for reading a video stream from the camera.
Currently two camera interfaces can be used on Windows: Video for Windows (VFW) and Matrox Imaging Library (MIL); and two on Linux: V4L and FireWire (IEEE1394).
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static VideoCapture FromCamera(
int index
)
Public Shared Function FromCamera (
index As Integer
) As VideoCapture
public:
static VideoCapture^ FromCamera(
int index
)
static member FromCamera :
index : int -> VideoCapture
OpenCvSharp.VideoCapture.FromCamera = function(index);
Parameters
- index
- Type: SystemInt32
Index of the camera to be used. If there is only one camera or it does not matter what camera to use -1 may be passed.
Return Value
Type:
VideoCapture
See Also