Click or drag to resize

VideoCaptureRead Method (Mat)

Grabs, decodes and returns the next video frame. The method/function combines VideoCapture::grab() and VideoCapture::retrieve() in one call. This is the most convenient method for reading video files or capturing data from decode and returns the just grabbed frame. If no frames has been grabbed (camera has been disconnected, or there are no more frames in video file), the method returns false and the function returns empty image (with %cv::Mat, test it with Mat::empty()).

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public bool Read(
	Mat image
)

Parameters

image
Type: OpenCvSharpMat

[Missing <param name="image"/> documentation for "M:OpenCvSharp.VideoCapture.Read(OpenCvSharp.Mat)"]

Return Value

Type: Boolean
`false` if no frames has been grabbed
See Also