VideoCapture.fromDevice constructor
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);
}