Does Openni 2.2 support Kinect v2?

折月煮酒 提交于 2019-12-03 09:10:26

OpenNI doesn't support Kinect (v1 or v2) directly. But you may install a driver for that. I have used successfully the Kinect v1 with OpenNI in windows and Linux... In windows it is easier, you only need to install the Kinect SDK 1.8 for v1... I haven't test it for v2 though, but I am almost sure it doesn't work... most probably you will need to wait for an open driver...

In summary:

Does Openni 2.2 support Kinect v2?

No

So what should I do to make it run?

Wait for an open driver of kinect that works with openni

In the kinect2 branch in the occipital OpenNI2 repository they seem to be working on a Kinect v2 driver for OpenNI2 based on the official Microsoft SDK. I haven't tested it myself though.

I was also trying to do this for my project and I found that Occipitals' github OpenNI2 source has a functional kinect2 driver in their "Kinect 2" branch. I could build this source and run the NiViewer,exe with Kinect 2.

It's simple:

1.Fork this:OpenNI2 Kinect2 source and clone a copy on to your computer at desired location, ensure Kinect 2.0 SDK is installed.

2.Build the solution: OpenNI.sln (unload the "Kinect" project if you have no Kinect 1.x SDK installed).

3.After building the OpenNI.sln, you will find Kinect2.dll and Kinect2.lib under directory you forked to>Bin>X64(/32)Debug>OpenNI2>Drivers

  1. Copy these to the default directory of the installed OpenNI2 on your system C:\Program Files\OpenNI2\Tools\OpenNI2\Drivers (or the corresponding location in the build is Bin\x64 debug\NiViewer.exe)

  2. Run the NiViewer.exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!