read method

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

Implementation

(bool, Mat) read({Mat? m}) {
  m ??= Mat.empty();
  return cvRunArena<(bool, Mat)>((arena) {
    final p = arena<ffi.Int>();
    cvRun(() => cffi.VideoCapture_Read(ref, m!.ref, p));
    return (p.value != 0, m!);
  });
}