startCaptureOnSampler2D method
- Start capturing
Set Sampler2D uniform name
with frames captured by OpenCV VideoCapture
completeFilePath
can be:
'cam0' for webCam0
'cam1' for webCam1
a complete local video file path
Implementation
bool startCaptureOnSampler2D(String name, String completeFilePath) {
int ret = _startCapture(
name.toNativeUtf8().cast<ffi.Char>(),
completeFilePath.toNativeUtf8().cast<ffi.Char>(),
);
return ret == 0 ? false : true;
}