fromDeviceAsync static method
Implementation
static Future<VideoCapture> fromDeviceAsync(int device, {int apiPreference = CAP_ANY}) async => cvRunAsync(
(callback) => cffi.VideoCapture_NewFromIndex_Async(device, apiPreference, callback),
(completer, p) => completer.complete(VideoCapture.fromPointer(p.cast<cvg.VideoCapture>())),
);