opencv无法打开opencv2/core/core.hpp。也无法识别cv命名空间


   
  #pragma warning(push)
  
#pragma warning(disable : 6294 6031)
#include <opencv2/core/core.hpp>
#pragma warning(pop)

using namespace cv;

namespace Microsoft {
namespace KinectBridge {
class OpenCVFrameHelper : public KinectHelper<Mat> {
public:xxxxx
xxxx
xxxx

这段代码是kinect与opencv结合的例程,导入vs后include下方有红线,提示无法打开opencv2/core/core.hpp,还有cv这个命名空间无法识别,在我以前的程序里没出现过这个问题,配置什么的我都做了还是不行。无法上传图片,但是include和cv下面都有红线,无法编译

visualstudio opencv

aLIE_w 10 years, 9 months ago

环境变量设置了没有?

Site。 answered 10 years, 9 months ago

Your Answer