简体   繁体   English

如何在Windows和Visual Studio 2010中安装Openni?

[英]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件东西:

  1. OpenNI OpenNI
  2. NITE 尼特
  3. Sensor Kinect (Avin's driver has the patch for Kinect, where as the default Sensor Driver is for Asus like sensors) Sensor Kinect (Avin的驱动程序具有Kinect的修补程序,其中默认的Sensor Driver适用于华硕等传感器)

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上,它应该非常相似。 具有OpenCV ccmake的OpenNI You don't need all the other settings exactly like mine, make sure WITH_OPENNI is ON . 您不需要像我的其他所有其他设置,请确保WITH_OPENNION

I've recently posted an OpenCV/OpenNI simple filtering example here . 我最近在这里发布了一个OpenCV / OpenNI简单过滤示例。 OpenCV + OpenNI过滤器和轮廓示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows和Visual Studio 2010上的OpenSSL - OpenSSL on Windows and Visual Studio 2010 如何在 Visual Studio 2010 中安装 Crypto++? - How do I install Crypto++ in Visual Studio 2010? 如何在 Visual Studio 2010 中创建 C++ Windows 服务并与之通信? - How to create and communicate with a C++ Windows Service in Visual Studio 2010? 如何在Visual Studio 2015社区上安装Visual Studio Build Tools 2010? - How to install Visual Studio Build Tools 2010 on Visual Studio 2015 Community? 适用于Windows和Linux的Visual Studio 2010项目 - Visual studio 2010 project for windows and linux 在 Visual Studio 2010 和 Windows 中使用文件描述符 - Using File Descriptors in Visual Studio 2010 and Windows 如何在 Windows 上为 Visual Studio Code 安装 vckpg? - How do you install vckpg for Visual Studio Code on Windows? 如何在Windows 8.1上安装SDL并将其连接到Visual Studio Community 2013 - How to install SDL on Windows 8.1 and to connect it to Visual Studio Community 2013 如何安装Visual Studio 2008的最小功能,足以使用Visual Studio 2010的多目标构建C ++应用程序? - How do I install the minimal facilities of Visual Studio 2008 sufficient for building C++ applications using Visual Studio 2010's multitargeting? 如何使用C ++ 2010、2012和2013工具集安装Visual Studio 2013的一个版本 - How to install one version of visual studio 2013 with c++ 2010, 2012 and 2013 toolsets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM