当前位置: 首页 > news >正文

住房和城乡建设部官方网站发布广州网站的建设

住房和城乡建设部官方网站发布,广州网站的建设,app和网站开发哪个难,wordpress生成原生app问题环境背景#xff1a; 首先是Ubuntu2004 电脑里面有opencv3和opencv4共存#xff0c; 现象#xff1a;编译的时候ros指向opencv4版本之间的不兼容导致 首先是遇到ceres库的版本问题 然后是 源码安装vins-mono算法问题整理#xff08;ROS Melodic opencv 4.1.1#x…问题环境背景 首先是Ubuntu2004 电脑里面有opencv3和opencv4共存 现象编译的时候ros指向opencv4版本之间的不兼容导致 首先是遇到ceres库的版本问题 然后是 源码安装vins-mono算法问题整理ROS Melodic opencv 4.1.1 - 创客智造/爱折腾智能机器人社区 测试环境Jetson Xavier NX Jetpack4.4 Ubuntu 1804 ROS Melodic opencv 4.1.1  问题一 编译时报错 error: ‘CV_GRAY2RGB’ was not declared in this scope 等 /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In constructor ‘camodocal::Chessboard::Chessboard(cv::Size, cv::Mat)’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:20:38: error: ‘CV_GRAY2BGR’ was not declared in this scopecv::cvtColor(image, mSketch, CV_GRAY2BGR);^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:26:37: error: ‘CV_BGR2GRAY’ was not declared in this scopecv::cvtColor(image, mImage, CV_BGR2GRAY);^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In member function ‘bool camodocal::Chessboard::findChessboardCornersImproved(const cv::Mat, const Size, std::vectorcv::Point_float , int)’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:150:43: error: ‘CV_BGR2GRAY’ was not declared in this scopecv::cvtColor(image, norm_img, CV_BGR2GRAY);^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:207:67: error: ‘CV_THRESH_BINARY’ was not declared in this scopecv::threshold(img, thresh_img, thresh_level, 255, CV_THRESH_BINARY);^~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In constructor ‘camodocal::Chessboard::Chessboard(cv::Size, cv::Mat)’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:20:38: error: ‘CV_GRAY2BGR’ was not declared in this scopecv::cvtColor(image, mSketch, CV_GRAY2BGR);^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:26:37: error: ‘CV_BGR2GRAY’ was not declared in this scopecv::cvtColor(image, mImage, CV_BGR2GRAY);^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:215:57: error: ‘CV_SHAPE_CROSS’ was not declared in this scopecv::Mat kernel1 cv::getStructuringElement(CV_SHAPE_CROSS, cv::Size(3,3), cv::Point(1,1));^~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In member function ‘bool camodocal::Chessboard::findChessboardCornersImproved(const cv::Mat, const Size, std::vectorcv::Point_float , int)’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:150:43: error: ‘CV_BGR2GRAY’ was not declared in this scopecv::cvtColor(image, norm_img, CV_BGR2GRAY);^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:215:57: note: suggested alternative: ‘CV_WRAP_AS’cv::Mat kernel1 cv::getStructuringElement(CV_SHAPE_CROSS, cv::Size(3,3), cv::Point(1,1));^~~~~~~~~~~~~~CV_WRAP_AS /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:216:57: error: ‘CV_SHAPE_RECT’ was not declared in this scopecv::Mat kernel2 cv::getStructuringElement(CV_SHAPE_RECT, cv::Size(3,3), cv::Point(1,1));^~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:320:43: error: ‘CV_TERMCRIT_EPS’ was not declared in this scopecv::TermCriteria(CV_TERMCRIT_EPS CV_TERMCRIT_ITER, 30, 0.1));^~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:207:67: error: ‘CV_THRESH_BINARY’ was not declared in this scopecv::threshold(img, thresh_img, thresh_level, 255, CV_THRESH_BINARY);^~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:320:61: error: ‘CV_TERMCRIT_ITER’ was not declared in this scopecv::TermCriteria(CV_TERMCRIT_EPS CV_TERMCRIT_ITER, 30, 0.1));^~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:215:57: error: ‘CV_SHAPE_CROSS’ was not declared in this scopecv::Mat kernel1 cv::getStructuringElement(CV_SHAPE_CROSS, cv::Size(3,3), cv::Point(1,1));^~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:215:57: note: suggested alternative: ‘CV_WRAP_AS’cv::Mat kernel1 cv::getStructuringElement(CV_SHAPE_CROSS, cv::Size(3,3), cv::Point(1,1));^~~~~~~~~~~~~~CV_WRAP_AS /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:216:57: error: ‘CV_SHAPE_RECT’ was not declared in this scopecv::Mat kernel2 cv::getStructuringElement(CV_SHAPE_RECT, cv::Size(3,3), cv::Point(1,1));^~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:320:43: error: ‘CV_TERMCRIT_EPS’ was not declared in this scopecv::TermCriteria(CV_TERMCRIT_EPS CV_TERMCRIT_ITER, 30, 0.1));^~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In member function ‘void camodocal::Chessboard::generateQuads(std::vectorboost::shared_ptrcamodocal::ChessboardQuad , cv::Mat, int, int, bool)’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1175:50: error: ‘CV_RETR_CCOMP’ was not declared in this scopecv::findContours(image, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:320:61: error: ‘CV_TERMCRIT_ITER’ was not declared in this scopecv::TermCriteria(CV_TERMCRIT_EPS CV_TERMCRIT_ITER, 30, 0.1));^~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1175:65: error: ‘CV_CHAIN_APPROX_SIMPLE’ was not declared in this scopecv::findContours(image, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In member function ‘void camodocal::Chessboard::generateQuads(std::vectorboost::shared_ptrcamodocal::ChessboardQuad , cv::Mat, int, int, bool)’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1175:50: error: ‘CV_RETR_CCOMP’ was not declared in this scopecv::findContours(image, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1175:65: error: ‘CV_CHAIN_APPROX_SIMPLE’ was not declared in this scopecv::findContours(image, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In member function ‘bool camodocal::Chessboard::checkChessboard(const cv::Mat, cv::Size) const’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1586:72: error: ‘CV_THRESH_BINARY’ was not declared in this scopecv::threshold(white, thresh, threshLevel blackWhiteGap, 255, CV_THRESH_BINARY);^~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1592:55: error: ‘CV_RETR_CCOMP’ was not declared in this scopecv::findContours(thresh, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1592:70: error: ‘CV_CHAIN_APPROX_SIMPLE’ was not declared in this scopecv::findContours(thresh, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc: In member function ‘bool camodocal::Chessboard::checkChessboard(const cv::Mat, cv::Size) const’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1586:72: error: ‘CV_THRESH_BINARY’ was not declared in this scopecv::threshold(white, thresh, threshLevel blackWhiteGap, 255, CV_THRESH_BINARY);^~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1597:56: error: ‘CV_THRESH_BINARY_INV’ was not declared in this scopecv::threshold(black, thresh, threshLevel, 255, CV_THRESH_BINARY_INV);^~~~~~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1592:55: error: ‘CV_RETR_CCOMP’ was not declared in this scopecv::findContours(thresh, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1592:70: error: ‘CV_CHAIN_APPROX_SIMPLE’ was not declared in this scopecv::findContours(thresh, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:1597:56: error: ‘CV_THRESH_BINARY_INV’ was not declared in this scopecv::threshold(black, thresh, threshLevel, 255, CV_THRESH_BINARY_INV);/home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/calib/CameraCalibration.cc: In member function ‘void camodocal::CameraCalibration::drawResults(std::vectorcv::Mat) const’: /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/calib/CameraCalibration.cc:236:40: error: ‘CV_GRAY2RGB’ was not declared in this scopecv::cvtColor(image, image, CV_GRAY2RGB);^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/calib/CameraCalibration.cc:236:40: note: suggested alternative: ‘CV_GRAPH’cv::cvtColor(image, image, CV_GRAY2RGB);^~~~~~~~~~~CV_GRAPH /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/calib/CameraCalibration.cc:254:37: error: ‘CV_AA’ was not declared in this scope5, green, 2, CV_AA, drawShiftBits);^~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/camera_model/src/calib/CameraCalibration.cc:254:37: note: suggested alternative: ‘CV_AVX’5, green, 2, CV_AA, drawShiftBits);^~~~~CV_AVX 解决方法   在报错文件上添加头文件 #include opencv2/imgproc/imgproc_c.h单独遇到CV_AA的报错时也可以将 CV_AA 改为 cv::LINE_AA 问题二   编译时报错 error: ‘CV_CALIB_CB_ADAPTIVE_THRESH’ was not declared in this scope 、error: ‘CV_CALIB_CB_NORMALIZE_IMAGE’ was not declared in this scope、error: ‘CV_CALIB_CB_FILTER_QUADS’ was not declared in this scope 和 error: ‘CV_CALIB_CB_FAST_CHECK’ was not declared in this scope 解决方法   将CV_CALIB_CB_ADAPTIVE_THRESH、CV_CALIB_CB_NORMALIZE_IMAGE、CV_CALIB_CB_FILTER_QUADS和CV_CALIB_CB_FAST_CHECK修改为 cv::CALIB_CB_ADAPTIVE_THRESH 、 cv::CALIB_CB_NORMALIZE_IMAGE 、cv::CALIB_CB_FILTER_QUADS 和cv::CALIB_CB_FAST_CHECK 问题三   编译时报错 error: ‘CV_RGB2GRAY’ was not declared in this scope /home/ubuntu/catkin_ws/src/VINS-Mono/pose_graph/src/ThirdParty/DVision/BRIEF.cpp:53:32: error: ‘CV_RGB2GRAY’ was not declared in this scope cv::cvtColor(image, aux, CV_RGB2GRAY); ^~~~~~~~~~~ /home/ubuntu/catkin_ws/src/VINS-Mono/pose_graph/src/ThirdParty/DVision/BRIEF.cpp:53:32: note: suggested alternative: ‘CV_RGB’ cv::cvtColor(image, aux, CV_RGB2GRAY); 解决方法   在报错文件上添加头文件 #includeopencv2/imgproc/types_c.h 问题四   编译时遇到报错 error: ‘CV_FONT_HERSHEY_SIMPLEX’ was not declared in this scope 解决方法   将报错文件上的 CV_FONT_HERSHEY_SIMPLEX 参数改为 cv::FONT_HERSHEY_SIMPLEX 问题5  error: CV_LOAD_IMAGE_GRAYSCALE was not declared in this scope 解决办法 CV_LOAD_IMAGE_GRAYSCALE   替换成 cv::IMREAD_GRAYSCALE
http://www.yutouwan.com/news/202004/

相关文章:

  • 网站ps照片怎么做的深圳专业网站设计公司哪家好
  • 昆山花桥做网站建筑规范app
  • 网站开发自适应不同分辨率吴忠网络推广怎么做
  • 中企动力 网站模板虚拟主机登录wordpress管理后台
  • 好的网站建设商家耳机商城网站开发
  • 网站估价企业邮箱手机怎么登录
  • 淘客返利网站建设怎么建造自己的网站
  • 泰州学习网站建设建筑工程网络计划技术与应用
  • 旅游网站源码下载产品页面设计模板
  • 零基础搭建网站外贸企业网站建设
  • 建设淘宝网站的目的灵武市建设银行网站
  • jsp 交互网站开发技术 西安交通大学出版社 2005.10iapp怎么做软件
  • 媒体发稿网站开发网站中医建设
  • 坑梓网站建设怎么样wordpress显示阅读量
  • wordpress 1g cpu抖音seo关键词优化
  • silverlight 做的网站网站建设网站免费
  • 做网站具体收费如何给网站增加图标
  • 网站建设天猫店建站宝盒v8破解版下载
  • 济南建设网站企业报价机械企业网站模板 蓝色大气 dede织梦企业模板
  • 帮忙做快站旅游网站网站上做网页怎么改图片
  • 个人做网站和百家号赚钱深圳品牌策划与设计
  • 泉州网站制作定制wordpress优化图片
  • 在家做网站维护兼职房县网站建设
  • 建设网站企业排行wordpress两个站点
  • 毕业设计做网站网络广告营销策划方案
  • 新人如何自学做网站教育类集群网站建设
  • 贵阳网站建设钟鼎网络不建网站可不可以做cpa
  • 网站建设备案流程图免费舆情网站下载
  • 固镇网站建设模板之家怎么免费下载
  • 自适应网站模板下载宾爵手表官方网站