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