Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

How-to: Successfully Install Kinect on Windows (OpenNI and NITE)

, 3 Dec 2013
Rate this:
Please Sign up or sign in to vote.
How-to: Successfully install Kinect on Windows (OpenNI and NITE).

UPDATE: For more Kinect blog posts, consider visiting my new website pterneas.com. The website will always be up-to-date with the latest SDKs and sensors.

Introduction

Playing Kinect games is a really great experience. Programming for Kinect is even greater! Browsing the web, you can find many cool "hacks" (CLNUI, OpenKinect) which allow Kinect be used by a PC rather than an XBOX. Via these hacks, we gain access to Kinect's cameras (color and depth), LED, accelerometer and motor. Obtaining both the raw and the depth image, it is easier to build Machine Vision applications. But the main problem remains: Kinect magic is its software and the device simply cannot give us all those body-tracking algorithms by itself.

Fortunately, PrimeSense, the company behind Kinect, released OpenNI framework and NITE middleware. This means that we can now have access to features such as real-time skeleton tracking, gesture recognition, wave detection and much more!

Prerequisites

OpenNI and NITE installation can be painful if not done properly. Let's do it step by step:

Step 0

Uninstall any previews drivers, such as CLNUI. Look at the end of this post if you want to see how you can have multiple drivers installed.

Step 1

  • Download Kinect Drivers and unzip. 
  • Open the unzipped folder and navigate to Bin folder. 
  • Run the msi Windows file.

Drivers are now installed in your PC.

Step 2

Download and install the latest stable or unstable OpenNI Binaries from OpenNI website.

Step 3

Download and install the latest stable or unstable OpenNI Compliant Middleware Binaries (NITE) from OpenNI website.

During installation, provide the following (free) PrimeSense key: 0KOIk2JeIBYClPWVnMoRKn5cdY4=

Step 4

Download and install the latest stable or unstable OpenNI Compliant Hardware Binaries from OpenNI website.

Both stable and unstable releases have worked for me. If you have trouble installing the unstable releases, just try the stable ones.

Step 5

  • Plug in your Kinect device and connect its USB port with your PC.
  • Wait until the driver software is found and applied.
  • Navigate to the Device Manager (Control Panel). You should see something like the following:

Kinect in the Device Manager window

Step 6 

Navigate to C:\Program Files\OpenNI\Samples\Bin\Release (or C:\Program Files (x86)\OpenNI\Samples\Bin\Release) and try out the existing demo applications. Try the demos found in C:\Program Files\Prime Sense\NITE\Samples\Bin\Release (or C:\Program Files (x86)\Prime Sense\NITE\Samples\Bin\Release), too. If they work properly, then you are done! Congratulations! 

Step 7 

You have successfully installed Kinect in your Windows PC! Read the documentation and familiarize yourself with the OpenNI and NITE API. You'll find the proper assemblies in:

  • C:\Program Files\OpenNI\Bin (or C:\Program Files (x86)\OpenNI\Bin) and
  • C:\Program Files\Prime Sense\NITE\Bin (or C:\Program Files (x86)\Prime Sense\NITE\Bin)

OpenNI is the primary assembly you'll need when developing Natural User Interfaces applications.

C# tutorials on using the managed OpenNI.net libraries can be found in this blog, so stay tuned Wink | ;-) .

User tracker Kinect application

Update June 12, 2011: Troubleshooting

  • If you are running a version of OpenNI older than 1.1.0.38, then you need to replace the XML files found under Program Files\OpenNI\Data and Program Files\PrimeSense\NITE\Data with the corresponding ones found here.
  • If the demos do not run, then navigate to the Control Panel and open the Environment Variables panel. Under "System variables", find OPEN_NI_BIN variable and replace C:\Program Files\OpenNI\bin with C:\Program Files\OpenNI\Bin (uppercase "B"). 

Installing Multiple Drivers 

Thanks to my friend George Karakatsiotis (@erevodifwntas), you can now have various Kinect drivers installed concurrently. Here's how to achieve this: 

  • Open Device Manager 
  • Right click Kinect Camera under PrimeSensor.
  • Select "Update driver software"
  • Select "Browse my computer for driver software" and "Let me pick from a list of device drivers on my computer".
  • Select the driver of your preference (e.g. CLNUI).
  • You are done!  

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Vangos Pterneas
Product Manager LightBuzz
United Kingdom United Kingdom
Vangos Pterneas is a Microsoft Most Valuable Professional in the Kinect technology. He helps companies from all over the world grow their revenue by creating profitable software products. Vangos is the owner of LightBuzz Software agency and author of two technical books.
Follow on   Twitter   Google+   LinkedIn

Comments and Discussions

 
GeneralOne or more of the following notes could not be enumerated PinmemberHaris Zacharatos3-Mar-11 19:20 
GeneralBleu screen and error PinmemberMember 771035127-Feb-11 11:09 
GeneralRe: Bleu screen and error PinmemberMember 771035127-Feb-11 15:36 
GeneralRe: Bleu screen and error Pinmembercrizzle868-Apr-11 3:42 
GeneralRe: Bleu screen and error Pinmembercrizzle868-Apr-11 4:13 
QuestionInstalling Kinect for PC on Windows 7 PinmemberMember 769045420-Feb-11 22:49 
AnswerRe: Installing Kinect for PC on Windows 7 PinmemberVangos Pterneas21-Feb-11 4:40 
GeneralRe: Installing Kinect for PC on Windows 7 PinmemberMember 769045421-Feb-11 18:23 
GeneralWin7 Installation - Unable to get samples working [modified] PinmemberdBoyceMan4-Feb-11 11:17 
GeneralRe: Win7 Installation - Unable to get samples working PinmemberVangos Pterneas4-Feb-11 18:41 
GeneralRe: Win7 Installation - Unable to get samples working [modified] Pinmemberakapk7-Feb-11 14:10 
I am having exactly same problem. I tried both permutations on both a windows XP-Pro core duo nvidia laptop, and a windows 7 (brand new dell amd64 ) box. The kinect is brand new from BestBuy. I tried the workaround driver loading order as well. I uninstalled and explicitly removed the drivers, and rebooted and did a fresh install - both permutations both boxes - at least twice each. I deleted the xml files and wrote the new ones in after to make sure they were replaced. I downloaded "latest stable" of all items except the first as it's download zip files was on branch "unstable" - I also tried latest stable access from git on that one.
 
I also tried making sure the machine was not connected to the net when installing the drivers and plugging in device.
 
I also tried the OpenKinect system and managed to get it to build but it crashes on both boxes with libusb returning a null list, thier docs are thin vis-a-vis windows.
 
No doubt this has worked for someone else, but still no luck here. - extremely frustrated.
 
My goal to write C++ code to use the thing Smile | :)
 
*****
 
Just tried doing the same with all of the latest "unstable" versions. still no luck. I get
 
"One or more of the following nodes could not be enumerated:
 
Device: PrimeSense/SensorV2/5.0.0.24: The device is not connected!
 
*****
 
Just tried installing VC10 redistributable on WinXP box. deleting all drivers etc and doing it again.
still no luck when running niViewer I get
 
One or more of the following nodes could not be enumerated:
 
Device: PrimeSense/SensorV2/5.0.0.24: The device is not connected!
 
*****
 
OK !! found the issue.
 
One MUST at least on XP when installing the drivers use the option "explicitly selct driver to install" and make sure yoiu select the drivers
"Kinect Motor" for the motor driver and
"Kinect Camera" for the kinect camera.
 
DO NOT - select the "XBOX NUI Motor" or "XBOX NUI Camera" drivers.
these also appear to be the default drivers selected if you just let it read the .inf files in OpenNI or PrimeSense folders.
 
Hope other don't have to waste as much time as I did ;^>
 
PK

modified on Thursday, February 10, 2011 1:53 PM

GeneralRe: Win7 Installation - Unable to get samples working PinmemberdBoyceMan18-Feb-11 4:09 
GeneralRe: Win7 Installation - Unable to get samples working Pinmemberakapk18-Feb-11 4:15 
GeneralRe: Win7 Installation - Unable to get samples working Pinmemberjunkankur9-Mar-11 5:19 
GeneralRe: Win7 Installation - Unable to get samples working PinmemberDanielWerthen9-Apr-11 6:21 
GeneralRe: Win7 Installation - Unable to get samples working Pinmembertwerdster24-Mar-11 13:05 
GeneralRe: Win7 Installation - Unable to get samples working PinmemberCastrec25-Mar-11 4:11 
GeneralRe: Win7 Installation - Unable to get samples working Pinmember_Stephane_25-Mar-11 5:37 
GeneralRe: Win7 Installation - Unable to get samples working Pinmembertwerdster17-Apr-11 1:13 
GeneralSample-StickFigure PinmemberDuleKrtola3-Feb-11 1:09 
GeneralRe: Sample-StickFigure PinmemberVangos Pterneas3-Feb-11 2:15 
GeneralRe: Sample-StickFigure PinmemberDuleKrtola7-Feb-11 0:48 
GeneralRe: Sample-StickFigure PinmemberVangos Pterneas7-Feb-11 3:53 
General"App immediately closes" fix PinmemberDuleKrtola2-Feb-11 23:06 
GeneralRe: "App immediately closes" fix PinmemberVangos Pterneas3-Feb-11 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 3 Dec 2013
Article Copyright 2011 by Vangos Pterneas
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid