[英]How to install Openni in Windows and Visual Studio 2010?
I would like to use this code to kinect with Kinect because my codings are all in c++, and I realize that I would need openni. 我想使用此代码与Kinect结合,因为我的编码全部使用c ++,并且我意识到我需要openni。
VideoCapture capture( CV_CAP_OPENNI );
The problem is, I cannot find the latest guide installment for openni. 问题是,我找不到openni的最新指南。 When I do find some good guides, the links are dead. 当我找到一些好的指南时,链接就死了。 Can Anyone give me links for good openni installation in windows and in visual studio 2010? 任何人都可以给我链接以便在Windows和Visual Studio 2010中很好地安装openni吗? I would be very grateful. 我会很感激。
VideoCapture capture( CV_CAP_OPENNI );
sounds like your using OpenCV built with OpenNI support. 听起来就像您使用内置OpenNI支持的OpenCV。 I recommend installing OpenNI first. 我建议先安装OpenNI。 Version 1.5.4.0 which you can find here works with OpenCV. 您可以在此处找到的1.5.4.0版本适用于OpenCV。 I haven't tested OpenNI 2.0 with OpenCV yet. 我还没有使用OpenCV测试过OpenNI 2.0。
You need to install 3 things in this order: 您需要按以下顺序安装3件东西:
Once you've installed OpenNI and it works: PrimeSense drivers detects the device and you can run any of the OpenNI samples, like NiViewer
(in OpenNIInstallFolder/Samples/Build/Bin/..etc.) you can choose to simple use the C++ OpenNI API or install and use OpenCV with OpenNI support. 一旦安装了OpenNI并可以使用:PrimeSense驱动程序将检测到该设备,并且您可以运行任何OpenNI示例,例如NiViewer
(在OpenNIInstallFolder / Samples / Build / Bin / .. etc中),您可以选择简单地使用C ++ OpenNI API或安装并使用具有OpenNI支持的OpenCV。
You should built it from source and using CMake turn OpenNI support on. 您应该从源代码构建它,并使用CMake打开OpenNI支持。 Once that's built OpenCV with OpenNI support you can run the above code. 一旦构建了具有OpenNI支持的OpenCV,您就可以运行上面的代码。 Here's a screenshot running ccmake
. 这是运行ccmake
的屏幕截图。 It should very similar on Windows with CMake . 在带有CMake的 Windows上,它应该非常相似。 You don't need all the other settings exactly like mine, make sure WITH_OPENNI
is ON
. 您不需要像我的其他所有其他设置,请确保WITH_OPENNI
为ON
。
I've recently posted an OpenCV/OpenNI simple filtering example here . 我最近在这里发布了一个OpenCV / OpenNI简单过滤示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.