【发布时间】:2013-12-22 20:39:44
【问题描述】:
请参阅下面勾选的答案:) 错误 1 error C2065: 'capture' : undeclared identifier
在 OpenCV 中使用 VS2013 Express 较旧的代码示例可以正常工作,但我无法将其用于:
#include <opencv2\core\core.hpp>
#include <opencv2\highgui\highgui.hpp>
using namespace cv;
int main()
{
Mat frame = cvQueryFrame(capture);
imshow("Video", frame);
}
我不得不改变"opencv2/core/core.hpp"
到#include <opencv2\core\core.hpp>,它得到了那一点。
但我试过包括 highgui 但我不能让"capture" 工作?
有任何想法吗?
x64 on Debug,并使用 x64 库...
【问题讨论】: