read method

(bool, Mat) read({
  1. Mat? m,
})

Implementation

(bool, Mat) read({Mat? m}) {
  m ??= Mat.empty();
  final p = calloc<ffi.Bool>();
  cvRun(() => cvideoio.cv_VideoCapture_read(ref, m!.ref, p, ffi.nullptr));
  final rval = (p.value, m);
  calloc.free(p);
  return rval;
}