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<cvideo.VideoCapture>();
  cvRun(() => cvideo.VideoCapture_NewFromIndex(device, apiPreference, p));
  return VideoCapture._(p);
}