diff --git a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp index bb33c6240563f883e2f91e1094ee69c6bfd96aa3..21561726c9b616c43f9be3bfbb093ceceb95442b 100644 --- a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp +++ b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp @@ -78,7 +78,11 @@ void StereoVideoSource::init(const string &file) { #else throw FTL_Error("Not built with pylon support"); #endif - } else if (uri.getPathSegment(0) == "video" || uri.getPathSegment(0) == "video") { + } else if (uri.getPathSegment(0) == "opencv") { + // Use cameras + LOG(INFO) << "Using OpenCV cameras..."; + lsrc_ = ftl::create<ftl::rgbd::detail::OpenCVDevice>(host_, "feed"); + } else if (uri.getPathSegment(0) == "video" || uri.getPathSegment(0) == "camera") { // Now detect automatically which device to use #ifdef HAVE_PYLON auto pylon_devices = ftl::rgbd::detail::PylonDevice::listDevices();