Trait opencv::prelude::VideoReader[][src]

pub trait VideoReader: VideoReaderConst {
    fn as_raw_mut_VideoReader(&mut self) -> *mut c_void;

    fn next_frame(
        &mut self,
        frame: &mut GpuMat,
        stream: &mut Stream
    ) -> Result<bool> { ... } }

Required methods

Provided methods

Grabs, decodes and returns the next video frame.

If no frames has been grabbed (there are no more frames in video file), the methods return false . The method throws Exception if error occurs.

C++ default parameters
  • stream: Stream::Null()

Implementors