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

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

By , 12 Jun 2011
 

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!

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

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)

About the Author

Vangos Pterneas
Software Developer Freelancer
Greece Greece
I have been a student at Athens University of Economics and Business, Department of Informatics, since September 2007.
 
I mainly develop and design .NET applications in C#, ASP.NET and Silverlight, but I have also worked on J2EE, LAMP and C++.
 
Currently, I am a member of Microsoft Student Partners team and I work as a freelancer for several employers including the Institute for the Management of Information Systems and Vodafone Corporation. As a Student Partner, I have made lots of speaking engagements considering Microsoft technologies (ASP.NET, Silverlight, Windows Phone etc) to undergraduate / postgraduate students and developers.
Follow on   Twitter

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionhow to make kinect object in matlab??memberyawar8626-Sep-12 1:57 
GeneralThank you - that worked finememberyawar8626-Sep-12 1:55 
QuestionA Cautionary TalememberDaveGD11-May-12 5:34 
GeneralRe: A Cautionary Talemembertttdolph1-Aug-12 10:42 
QuestionThank [modified]membervuadapass2-Feb-12 14:52 
QuestionArticle needs to be updated..memberPraveen Kullu2-Nov-11 0:41 
AnswerRe: Article needs to be updated..memberDarren Weir3-May-12 17:57 
GeneralRe: Article needs to be updated..memberDarren Weir3-May-12 21:03 
Never mind - as soon as I plugged in an Xbox Kinect the drivers worked.
 
The Windows Kinect has a different product id so I guess it doesn't work with OpenNI.
QuestionThanksmemberYDaoust30-Jun-11 0:22 
GeneralYellow trianglememberg00fying9-Jun-11 9:39 
GeneralDevice is not connectedmembermatteosistisette8-Jun-11 11:28 
GeneralRe: Device is not connectedmemberTeisDraiby10-Jun-11 0:33 
GeneralRe: Device is not connectedmembernhanksd8511-Jun-11 22:49 
GeneralConnecting errormemberyunnie18-May-11 17:36 
GeneralBlinking green ledmemberdede_ii17-May-11 3:26 
GeneralRe: Blinking green ledmemberMember 79870977-Jun-11 5:44 
GeneralHaving trouble getting the viewer application to work!memberMember 79103929-May-11 18:53 
GeneralRe: Having trouble getting the viewer application to work!memberMember 79103929-May-11 19:02 
GeneralRe: Having trouble getting the viewer application to work!memberMember 79103929-May-11 19:19 
GeneralThank youmemberwailo4-May-11 22:53 
Generalmanualy triggering "user lost" eventmemberDuleKrtola4-May-11 21:04 
Generalinstall 2 kinects on windows 7 - 64 bitsmembergonzato28-Apr-11 2:16 
GeneralBlack Screenmemberdanfelbm9-Apr-11 14:45 
GeneralRe: Black ScreenmemberVangos Pterneas12-Apr-11 10:41 
GeneralMy vote of 5memberMostafa Pordel29-Mar-11 23:44 
GeneralHow-to: Successfully Install Kinect on WindowsmemberMember 76904547-Mar-11 0:40 
GeneralRe: How-to: Successfully Install Kinect on Windowsmemberspeedofspin29-Mar-11 23:06 
GeneralOne or more of the following notes could not be enumeratedmemberHaris Zacharatos3-Mar-11 19:20 
GeneralBleu screen and errormemberMember 771035127-Feb-11 11:09 
GeneralRe: Bleu screen and errormemberMember 771035127-Feb-11 15:36 
GeneralRe: Bleu screen and errormembercrizzle868-Apr-11 3:42 
GeneralRe: Bleu screen and errormembercrizzle868-Apr-11 4:13 
QuestionInstalling Kinect for PC on Windows 7memberMember 769045420-Feb-11 22:49 
AnswerRe: Installing Kinect for PC on Windows 7memberVangos Pterneas21-Feb-11 4:40 
GeneralRe: Installing Kinect for PC on Windows 7memberMember 769045421-Feb-11 18:23 
GeneralWin7 Installation - Unable to get samples working [modified]memberdBoyceMan4-Feb-11 11:17 
GeneralRe: Win7 Installation - Unable to get samples workingmemberVangos Pterneas4-Feb-11 18:41 
GeneralRe: Win7 Installation - Unable to get samples working [modified]memberakapk7-Feb-11 14:10 
GeneralRe: Win7 Installation - Unable to get samples workingmemberdBoyceMan18-Feb-11 4:09 
GeneralRe: Win7 Installation - Unable to get samples workingmemberakapk18-Feb-11 4:15 
GeneralRe: Win7 Installation - Unable to get samples workingmemberjunkankur9-Mar-11 5:19 
GeneralRe: Win7 Installation - Unable to get samples workingmemberDanielWerthen9-Apr-11 6:21 
GeneralRe: Win7 Installation - Unable to get samples workingmembertwerdster24-Mar-11 13:05 
GeneralRe: Win7 Installation - Unable to get samples workingmemberCastrec25-Mar-11 4:11 
GeneralRe: Win7 Installation - Unable to get samples workingmember_Stephane_25-Mar-11 5:37 
GeneralRe: Win7 Installation - Unable to get samples workingmembertwerdster17-Apr-11 1:13 
GeneralSample-StickFigurememberDuleKrtola3-Feb-11 1:09 
GeneralRe: Sample-StickFigurememberVangos Pterneas3-Feb-11 2:15 
GeneralRe: Sample-StickFigurememberDuleKrtola7-Feb-11 0:48 
GeneralRe: Sample-StickFigurememberVangos Pterneas7-Feb-11 3:53 

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130619.1 | Last Updated 12 Jun 2011
Article Copyright 2011 by Vangos Pterneas
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid