1
我使用的是OpenCV的kinect。我没有Cmake配置它。我已经包括了一切,但是当我写下面的代码时:CV_CAP_OPENNI不适用于我
#include "stdafx.h"
#include <cv.h>
#include <highgui.h>
#include <XnCppWrapper.h>
using namespace std;
using namespace cv;
int main()
{
Mat image = imread("c:\\im.jpg");
imshow("image",image);
VideoCapture Cap (CV_CAP_OPENNI);
if (!Cap.isOpened())
{
cout << "wrong";
}
waitKey(0);
return 0;
}
我在屏幕上看到“错误”一词。我认为Xncore.dll存在问题我如何添加它或我的代码有什么问题?
嗨,我可以从哪里获得源代码?从这个链接(http://opencv.willowgarage.com/wiki/InstallGuide)它只链接到tarball的sourceforge(这是我使用的) – Aly 2012-12-10 16:34:27