From 1c6d427b5357af2ec43796d6a87b7920746376e1 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sun, 7 Jun 2020 13:12:35 +0300 Subject: [PATCH] Allow force opencv --- .../rgbd-sources/src/sources/stereovideo/stereovideo.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp index bb33c6240..21561726c 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(); -- GitLab