We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6503d8e commit e5dc799Copy full SHA for e5dc799
intra_process_demo/include/image_pipeline/camera_node.hpp
@@ -47,14 +47,8 @@ class CameraNode final : public rclcpp::Node
47
{
48
// Initialize OpenCV
49
cap_.open(device);
50
- // TODO(jacobperron): Remove pre-compiler check when we drop support for Xenial
51
-#if CV_MAJOR_VERSION < 3
52
- cap_.set(CV_CAP_PROP_FRAME_WIDTH, static_cast<double>(width));
53
- cap_.set(CV_CAP_PROP_FRAME_HEIGHT, static_cast<double>(height));
54
-#else
55
cap_.set(cv::CAP_PROP_FRAME_WIDTH, static_cast<double>(width));
56
cap_.set(cv::CAP_PROP_FRAME_HEIGHT, static_cast<double>(height));
57
-#endif
58
if (!cap_.isOpened()) {
59
throw std::runtime_error("Could not open video stream!");
60
}
0 commit comments