| VideoCaptureRetrieve Method (OutputArray, Int32) |
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()).
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public bool Retrieve(
OutputArray image,
int flag = 0
)
Public Function Retrieve (
image As OutputArray,
Optional flag As Integer = 0
) As Boolean
public:
bool Retrieve(
OutputArray^ image,
int flag = 0
)
member Retrieve :
image : OutputArray *
?flag : int
(* Defaults:
let _flag = defaultArg flag 0
*)
-> bool
Parameters
- image
- Type: OpenCvSharpOutputArray
the video frame is returned here. If no frames has been grabbed the image will be empty. - flag (Optional)
- Type: SystemInt32
it could be a frame index or a driver specific flag
Return Value
Type:
Boolean[Missing <returns> documentation for "M:OpenCvSharp.VideoCapture.Retrieve(OpenCvSharp.OutputArray,System.Int32)"]
See Also