catkin_make时出现‘CV_RETR_TREE’ was not declared in this scope,是cv::findcontours的API更新问题,返回值数量发生了变化:

/home/ygc/catkin_ws/src/probot_grasping/src/vision_manager.cpp: In member function ‘void VisionManager::detectTable(cv::Rect&)’:
/home/ygc/catkin_ws/src/probot_grasping/src/vision_manager.cpp:96:53: error: ‘CV_RETR_TREE’ was not declared in this scopecv::findContours(binaryImage, contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE, cv::Point(0, 0));

在对应cpp里添加头文件即可:打开vision_manager.cpp,头文件里添加

#include <opencv2/imgproc/types_c.h>

即可

catkin_make时出现‘CV_RETR_TREE’ was not declared in this scope相关推荐

  1. CV_RETR_TREE’ was not declared in this scope

    编译时报错: error: 'CV_RETR_EXTERNAL' was not declared in this scope; did you mean 'CV_DEPRECATED_EXTERNA ...

  2. MIT cheetah make时 error: ‘ioctl’ was not declared in this scope

    问题: error: 'ioctl' was not declared in this scope35 | ioctl(fd, TCGETS2, &tty); 解决: 打开Cheetah-So ...

  3. keil编译时,提示function “xxx“ declared implicitly错误解决办法

    当keil编译时,出现function "USART3_Config" declared implicitly错误,意思是存在隐式申明,也就是在申明头文件或者函数名的时候存在一定的 ...

  4. 调用ffmpeg库编译时出现common.h:175:47: error: 'UINT64_C' was not declared in this scope

    解决办法 出现错误:jni/ffmpeg/libavutil/common.h:175:47: error: 'UINT64_C' was not declared in this scope 解决: ...

  5. 【C++】mingw32-make+cmake:error: ‘nullptr‘ was not declared in this scope解决方法

    ###问题 使用cmake成功(Configuring done Generating done)后,在cmd终端中执行 mingw32-make报错: error: 'nullptr' was no ...

  6. 解决Cygwin编译cocos2dx 遇到的 error: 'UINT64_C' was not declared in this scope 问题

    环境工具:Win10.VS2013.cocos2d-x-2.2.6.Cygwin.ADT 问题来源:写了一个小游戏,VS2013上运行成功,就尝试着打包apk,项目导入到ADT里面,添加了cocos2 ...

  7. GetConsoleWindow was not declared in this scope

    有时使用GetConsoleWindow()找控制台窗口的句柄时,会提示出错信息: 'GetConsoleWindow' was not declared in this scope. 解决的方法有: ...

  8. error: 'NULL' was not declared in this scope

    编译时出现这个错误: error: 'NULL' was not declared in this scope 解决方式: 在文件开头添加如下代码: #include <stddef.h> ...

  9. error: ‘ULONG_MAX’ was not declared in this scope

    在编译.cpp文件时,出现错误: error: 'ULONG_MAX' was not declared in this scope 解决方法:在.h文件中添加头文件,#include  <cl ...

最新文章

  1. [华为机试真题][2014]62.去除重复字符并排序
  2. FIR滤波器的Matlab实现
  3. VMware ubuntu虚拟机怎么设置分辨率?(全屏显示、大屏显示)
  4. docker镜像内容如何查看_如何快速打通 Docker 镜像发布流程?
  5. C/S端开发问题汇总
  6. OpenCV PCA与指定的保留差异量的实例(附完整代码)
  7. 聚焦新基建,腾讯云十余项自研技术应用集中亮相
  8. 接口应用:内部比较器Comparable
  9. 【Mac】Mac 下 kafka 生产者 控制台 发送长消息被截断
  10. Ettus Research USRP B200/B210 simple case
  11. c++ 读取写入txt
  12. php随机生成微信昵称(一),可配合头像一起生成虚拟头像
  13. 华为路由器交换机配置命令
  14. find vba 模糊_求Find模糊查找和绝对查找的方法。
  15. 一个字节8位,无符号类型,最大值为什么是2的8次方-1,范围0-255
  16. printf(%d%d%d%d\n, a,b,c);
  17. 洛谷题目--P1008三连击--正难则反、模拟、枚举、暴力<每日一题>
  18. 【运筹学】(2)—预测
  19. vue全局配置_silent
  20. python程序中如何合理处理[WinError 5]拒绝访问的错误

热门文章

  1. python 阻止锁屏_想要自己的手机锁屏更加安全吗?python带你打造个性的锁屏控件...
  2. 计算机网络性能指标:速率、带宽和吞吐量
  3. axure 教务系统_【Axure原型推荐】第1期 在线教育小程序原型
  4. HTML仿QQ音乐页面附源码(无框架)
  5. 如何停止计算机设备,电脑出现“该设备因问题而停止”该怎么办?
  6. 如何对pdf电子文档进行手写签名
  7. VMware配置虚拟机网络
  8. MySql数据库简介(一)
  9. 耶鲁大学 博弈论(Game Theory) 笔记6-纳什均衡之纳什均衡之伯川德模型与选民投票
  10. Vue - 本地上传 Excel 文件页面表格预览(配合 ElementUI / 带分页)