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
Member
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.

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

 
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 
anybody got any clue that how to make a kinect object in matlab??
GeneralThank you - that worked finememberyawar8626 Sep '12 - 1:55 
thank you fo rthe information ... kinect with my win7 worked Smile | :)
QuestionA Cautionary TalememberDaveGD11 May '12 - 5:34 
I used the Kinect, OpenNI with SensorKinect and NITE, last year. Coming back to it this year, only the Kinect Motor was detected. I spent most of the day chasing the problem. I have uninstalled and reinstalled both 32-bit and 64-bit versions. Old versions and latest versions. By using Device Manager, Action, Install legacy hardware, I could force the Kinect Camera to appear, but only with the yellow triangle and the "Device cannot start" error.
 
Then I fixed it by plugging the mains adapter of the XBox Kinect into the power.
 
The blinking LED fooled me. USB power is enough for the motor to be detected too.
Just thought I would add this message here since my searches always pointed at this thread. Indeed, Darren Wier's comment below says he fixed it by plugging it in. I thought he meant he plugged the USB in, but now I see. So I thought I would make it explicit.
 
Plus, if your C# program reports "Can't create any node of the requested type." then just double-check that you really have installed NITE. It's been a long day!
GeneralRe: A Cautionary Talemembertttdolph1 Aug '12 - 10:42 
On windows 7 64 bit I had to right click the sample and click run as administrator.
QuestionThank [modified]membervuadapass2 Feb '12 - 14:52 
It's really helpful to me. Thank you !


modified 29 Mar '12 - 21:48.

QuestionArticle needs to be updated..memberPraveen Kullu2 Nov '11 - 0:41 
Installation procedure has changed now. Now you need to go by this process:
 
1. OpenNI (OpenNI Binaries)
2. NITE (OpenNI Middleware binaries)
3.Primesensor (OpenNI Hardware Binaries)
All The downloads can be found here:
http://www.openni.org/Downloads/OpenNIModules.aspx[^]
 
4. SensorKinect Click Here[^]
 
Just select your download option:
Then select "unstable from the combobox below
Download the one for your O.S.
 
Install them in the order you have download.
AnswerRe: Article needs to be updated..memberDarren Weir3 May '12 - 17:57 
Hi,
 
I have Windows 7 Ultimate 64 bit.
 
I've tried:
 
openni-win32-1.5.2.23-dev.msi
nite-win32-1.5.2.21-dev.msi
sensor-win32-5.1.0.41-redist.msi
SensorKinect091-Bin-Win32-v5.1.0.25.msi (unstable)
 
and when I plug in the Windows Kinect device (not XBox Kinect) I get the following in the Device Manager:
 
- Microsoft Kinect
> Microsoft Kinect Audio Control
- Other Devices
> Unknown Device
 
I do not see any PrimeSensor node in Device Manager.
 
I've also tried 64 bit, 32 bit unstable and 32 bit stable (as above) without success.
 
I followed the troubleshooting instructions and tried to manually install the Kinect drivers located in
C:\Program Files (x86)\PrimeSense\SensorKinect\Driver
But that didn't help at all.
 
Is there any other troubleshooting steps that anyone is aware of?
 
Has anyone got this installed and working in the last few months. ie. in 2012?
 
Regards,
Darren
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 
Thank you for this article. You really need a survival guide to manage installing this stuff!
 
It took me several attempts and downloads of various versions. The hardest was to get the driver running. Without your guidance, I would never have found my way...
 
- Yves
GeneralYellow trianglememberg00fying9 Jun '11 - 9:39 
Hi, I have been following all the step one by one
all the installation work perfectly and the green led light on my kinect is blinking as well.
However I cannot run the viewer it does not work for me.
Moreover when I go to device manager under Prime Sense, in the kinect camera I have a small yellow triangle with caution sign inside it. And I also have kinect audio as well under Prime sense.
 
Thank You
GeneralDevice is not connectedmembermatteosistisette8 Jun '11 - 11:28 
Hi,
 
I followed STRICTLY your instructions, step by stem, and EVERYTHING went exactly as you described except for the last step:
 
when I run a sample, as for example the NiViewer, I get this message:
 
One or more of the following nodes could not be enumerated:
 
Device: PrimeSense/SensorV2/5.0.1.31: The device is not connected!
Image: PrimeSense/SensorV2/5.0.1.31: Can't create any node of the requested type
!
 
Any idea?
 
The kinect is connected and the green led is blinking. Drivers got succesfully installed...
GeneralRe: Device is not connectedmemberTeisDraiby10 Jun '11 - 0:33 
I had the same message yesterday when installing the Win64 Dev versions on my Windows 7-sp1, 64 bit system. After uninstalling and reinstalling several times with different configurations, I got the Win32 unstable versions working. Just before it worked I noticed that the Kinect was automatically installing some drivers from the internet, so that might have had an influence.
 
Here are the file versions that I used:
 
System: Windows 7sp1, 64bit
1: avin2-SensorKinect-28738dc.zip, SensorKinect-Win-OpenSource32-5.0.1.msi
2: OpenNI-Win32-1.1.0.41-Dev.msi
3: NITE-Win32-1.3.1.5-Dev.msi, key 0KOIk2JeIBYClPWVnMoRKn5cdY4=
4: Sensor-Win32-5.0.1.32-Redist.msi
(I did not replace the xml files)
 
Hope it helps, Teis
GeneralRe: Device is not connectedmembernhanksd8511 Jun '11 - 22:49 
http://www.youtube.com/watch?v=TDuGfAV6hDc[^]
You can follow the instruction in this link. This is really similar to 8 steps in current website, except that the step recompile the OpenNI. You can also find the document instruction and the link to download OpenNI components bellow this video.
[UPDATED 20/4/2011 New Version]
Kinect Installation Guide.docx
~ http://www.megaupload.com/?d=MNSKJINC
avin2-SensorKinect-28738dc.zip
~ http://www.megaupload.com/?d=ZESQGNIU
NITE-Win32-1.3.1.5-Dev.msi
~http://www.megaupload.com/?d=01OH5H19
OpenNI-Win32-1.1.0.41-Dev.msi
~ http://www.megaupload.com/?d=XJIFPX1K
 

[old version ]
Kinect Installation Guide.docx
~ http://www.megaupload.com/?d=60FXJ3JC
kinect installation.wmv (Video Guide in HD)
~ http://www.megaupload.com/?d=19NK5CW1
avin2-SensorKinect-0124bd2.zip
~ http://www.megaupload.com/?d=NTN5QBOH
NITE-Bin-Win32-v1.3.0.18.exe
~ http://www.megaupload.com/?d=0R4T20T1
OpenNI-Bin-Win32-v1.0.0.25.exe
~ http://www.megaupload.com/?d=8NH1MRH1
GeneralConnecting errormemberyunnie18 May '11 - 17:36 
Hi,
I've followed the steps as above for the installation. But when i try to connect, it will pop up a message saying "Open Error: Timeout.." May I know how can i go about solving this.
 
Thanks.
 
Yunnie
GeneralBlinking green ledmemberdede_ii17 May '11 - 3:26 
Hello,
 
I have a kinect from a XBox
When i connect to my windows 7 x64, green led is always blinking....
all the three device are detected (motor, camera, audio).. but I cannot connect
to the device in the OpenNi Sample...
 
Is blinking led a normal behaviour ?
 
Thanks a lot
Seb
GeneralRe: Blinking green ledmemberMember 79870977 Jun '11 - 5:44 
I had the exact same problem, this was the solution I finally found:
 
I solved the problem -- in my system environment variables,
OPEN_NI_BIN was set to C:\Program Files (x86)\OpenNI\bin
 
It should be "Bin" with a capitalized B rather than "bin". All the
demos work fine now.
GeneralHaving trouble getting the viewer application to work!memberMember 79103929 May '11 - 18:53 
Hello,
 
I have installed all the various drivers, etc. using this page:
http://www.codeproject.com/Articles/148251/How-to-Successfully-Install-Kinect-on-Windows-Open.aspx
but I just CANNOT get any of the demo applications to work!
 
I am just trying to run the NIviewer64.exe application and I get the following
error: "Open failed: OpenNI Library can't find any module!"
 
Help! Thanks! Smile | :)
GeneralRe: Having trouble getting the viewer application to work!memberMember 79103929 May '11 - 19:02 
Further to my earlier post, I noted that I do NOT see the
PrimeSensor --> KinectCamera in my device manager, just the
KinectMotor. When I run several of the demo apps from the
command line, I get an error that the program cannot find my
device ("the device is not connected!").
Do I perhaps have a bad unit?
 
Thanks!
GeneralRe: Having trouble getting the viewer application to work!memberMember 79103929 May '11 - 19:19 
just did a cal test of the unit with my Xbox... unit is working OK,
so I'm not really sure that the unit is bad... can't figure out why
I can't see the primesense camera driver though... wierd.
 
Any ideas would be greatly appreciated here. Thanks!
GeneralThank youmemberwailo4 May '11 - 22:53 
Thanks alot for this effort. worked fine on Win7 64-bit machine
Generalmanualy triggering "user lost" eventmemberDuleKrtola4 May '11 - 21:04 
Hi,
 
anyone got an idea how to do this? I believe I need to get the user's cookie, but don't know how :S
Generalinstall 2 kinects on windows 7 - 64 bitsmembergonzato28 Apr '11 - 2:16 
Hi everybody,
 
I want to plug 2 kinects on my laptop.
 
I followed steps on this blog...
When I plug first kinect... no problem
When after I plug the second kinect... no problem during driver installation on kinect motor and kinect device. But it's not work with kinect camera.
 
For the second kinect, by double-clicking on camera kinect peripheral.. windows says : "This peripheral could not start. (Code 10).
 
Could you help me please.
 
Jean-Christophe
GeneralBlack Screenmemberdanfelbm9 Apr '11 - 14:45 
Hello there,
 
Unfortunately I'm having the Black screen issue, I've already tried re-installing the components but it doesn't work. The kinect sensor works, but only a black screen is showed when opening any application. How can I solve this?
 
NITE, Openni and Kinect sensor are installed, running on Windows 7.
 
Regards and thanks in advance.
GeneralRe: Black ScreenmemberVangos Pterneas12 Apr '11 - 10:41 
Hi,
 
You probably haven't replaced the XML files. Ensure that you do not have the default ones.
GeneralMy vote of 5memberMostafa Pordel29 Mar '11 - 23:44 
It is a simple text for a hard task

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

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