Skip to content
Snippets Groups Projects
Commit 1c6d427b authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Allow force opencv

parent 881f1e31
No related branches found
No related tags found
1 merge request!312Support new basler cameras
...@@ -78,7 +78,11 @@ void StereoVideoSource::init(const string &file) { ...@@ -78,7 +78,11 @@ void StereoVideoSource::init(const string &file) {
#else #else
throw FTL_Error("Not built with pylon support"); throw FTL_Error("Not built with pylon support");
#endif #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 // Now detect automatically which device to use
#ifdef HAVE_PYLON #ifdef HAVE_PYLON
auto pylon_devices = ftl::rgbd::detail::PylonDevice::listDevices(); auto pylon_devices = ftl::rgbd::detail::PylonDevice::listDevices();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment