本文介绍了如何在Windows和Visual Studio 2010中安装Openni?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用这个代码Kinect与Kinect,因为我的编码都在c + +,我意识到,我需要openni。

  VideoCapture capture(CV_CAP_OPENNI); 

问题是,我找不到openni的最新指南分期付款。当我找到一些好的指导,链接死了。任何人都可以给我提供好的openni安装在windows和visual studio 2010的链接?

解决方案

VideoCapture capture(CV_CAP_OPENNI); 听起来像你使用OpenCV内置OpenNI支持。我建议先安装OpenNI。版本1.5.4.0,您可以在此找到。


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.

 VideoCapture capture( CV_CAP_OPENNI );

The problem is, I cannot find the latest guide installment for 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? I would be very grateful.

解决方案

VideoCapture capture( CV_CAP_OPENNI ); sounds like your using OpenCV built with OpenNI support. I recommend installing OpenNI first. Version 1.5.4.0 which you can find here works with OpenCV. I haven't tested OpenNI 2.0 with OpenCV yet.

You need to install 3 things in this order:

  1. 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)

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.

You should built it from source and using CMake turn OpenNI support on.Once that's built OpenCV with OpenNI support you can run the above code.Here's a screenshot running ccmake. It should very similar on Windows with CMake.You don't need all the other settings exactly like mine, make sure WITH_OPENNI is ON.

I've recently posted an OpenCV/OpenNI simple filtering example here.

这篇关于如何在Windows和Visual Studio 2010中安装Openni?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 06:46