VideoCaptureFromCamera Method (CaptureDevice)
|
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(
CaptureDevice device
)
Public Shared Function FromCamera (
device As CaptureDevice
) As VideoCapture
public:
static VideoCapture^ FromCamera(
CaptureDevice device
)
static member FromCamera :
device : CaptureDevice -> VideoCapture
OpenCvSharp.VideoCapture.FromCamera = function(device);
Parameters
- device
- Type: OpenCvSharpCaptureDevice
Device type
Return Value
Type:
VideoCapture
See Also