Table of Contents

Method RetrieveMat

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

RetrieveMat()

Decodes and returns the grabbed video frame.

The method decodes 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 an empty image (with %cv::Mat, test it with Mat::empty()).

public Mat RetrieveMat()

Returns

Mat

the video frame is returned here. If no frames has been grabbed the image will be empty.