VideoCapture.fromDevice constructor

VideoCapture.fromDevice(
  1. int device, {
  2. int apiPreference = CAP_ANY,
})

Implementation

factory VideoCapture.fromDevice(int device, {int apiPreference = CAP_ANY}) {
  final p = calloc<cvg.VideoCapture>();
  cvRun(() => cvideoio.cv_VideoCapture_create_2(device, apiPreference, p, ffi.nullptr));
  return VideoCapture._(p);
}