我正在编写一个使用Opencv2.4进行图像处理的代码,并在我的程序中使用这个头文件。
包括“opencv2 / core.hpp”
编译程序后,这是错误
error C1083: Cannot open include file: 'opencv2/core.hpp': No such file or directory
我尝试通过在头文件中添加核心文件夹来解决问题
#include "opencv2/core/core.hpp"
执行此操作后,错误数量增加如下。
error C2653: 'ogl' : is not a class or namespace name C:\OpenCV 4.0\include\opencv2\highgui\highgui.hpp
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\OpenCV 4.0\include\opencv2\highgui\highgui.hp
请帮我删除这些错误。提前致谢