当前位置:   article > 正文

X is not a member of 'cv'异常解决_pp:241:17: error: ‘debuglevel’ is not a member of

pp:241:17: error: ‘debuglevel’ is not a member of ‘cvtest’ if (cvtest::d

一、X is not a member of 'cv'异常情况举例

1、实例一

  1. //
  2. 'resize' is not a member of 'cv'
  3. 'cvtColor' is not a member of 'cv'
  4. 'putText' is not a member of 'cv'
  5. 'rectangle' is not a member of 'cv'
  6. //

2、实例二

  1. //
  2. VideoTest.cpp:(.text+0x6f): undefined reference to `cv::VideoWriter::fourcc(char,char,char, char)'
  3. VideoTest.cpp:(.text+0xc3): undefined reference to `cv::VideoWriter::open(cv::String const&, int, double, cv::Size_<int>, bool)'
  4. VideoTest.cpp:(.text+0x103): undefined reference to `cv::namedWindow(cv::String const&, int)'
  5. VideoTest.cpp:(.text+0x146): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
  6. VideoTest.cpp:(.text+0x1b1): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
  7. //


二、解决办法

1、加上对应的头文件。


三、情况例举

1、实例一直接加上下面的头文件

  1. //
  2. #include "opencv2/imgproc/imgproc.hpp"
  3. //

2、实例二直接加上下面的头文件

  1. //
  2. #include "opencv2/videoio.hpp"
  3. //


致谢

1、 X is not a member of 'cv'异常解决

2、OpenCV resize is not a member of cv (OpenCV Basics)





声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/爱喝兽奶帝天荒/article/detail/954837
推荐阅读
相关标签
  

闽ICP备14008679号