Kinect and OpenNI

Update (17.01.2013) - This old post is obsolete now and instruction will not work with latest OpenNI 2. I will wrote new one soon, when new SensorKinect drivers will be available.

Just installed OpenNI files to my home PC and run few samples. Working pretty good. Below simple instruction how to setup OpenNI for kinect hardware on Windows (i used Windows 7 Pro 64)

1. First uninstall all previous drivers (NUI or libfreenect)
2. Then install drivers from https://github.com/avin2/SensorKinect use manual install from '\Platform\Win32\Driver' ,after correct install you will have 'Kinect Motor' and ' 'Kinect Camera' under 'PrimeSensor'
Kinect and OpenNI

3. Install OpenNI and NITE

4. Run SensorKinect-Win32-5.0.0.exe from '\Bin' folder in package you get on step 2.

5. put this into 'NITE/Data/Sample-User.xml' file

<OpenNI>
<Licenses>
<License vendor="PrimeSense" key="0KOIk2JeIBYClPWVnMoRKn5cdY4="/>
</Licenses>
<Log writeToConsole="false" writeToFile="false">
<!-- 0 - Verbose, 1 - Info, 2 - Warning, 3 - Error (default) -->
<LogLevel value="3"/>
<Masks>
<Mask name="ALL" on="true"/>
</Masks>
<Dumps>
</Dumps>
</Log>
<ProductionNodes>
<Node type="Image" name="Image1">
<Configuration>
<MapOutputMode xRes="640" yRes="480" FPS="30"/>
<Mirror on="true"/>
</Configuration>
</Node>
<Node type="Depth" name="Depth1">
<Configuration>
<MapOutputMode xRes="640" yRes="480" FPS="30"/>
<Mirror on="true"/>
</Configuration>
</Node>
<Node type="User" name="User1"/>
<!--
<Node type="Audio" name="Audio1">
</Node>

-->
</ProductionNodes>
</OpenNI>

Also uncomment add fill all License nodes inside Sample-Scene.xml and Sample-Tracking.xml

<Licenses>
<License vendor="PrimeSense" key="0KOIk2JeIBYClPWVnMoRKn5cdY4="/>
</Licenses>

Then run samples.

Leave a Comments [ Trackback | RSS 2.0 ]

  • derek knox says:

    Pretty cool, congrats on getting up and running!

  • Zephyr says:

    Thank you very much. I can only start NiViewer and NiSimpleViewer.
    I have a problem with NiUserTracker.
    “Find user generator failed: Can not create Any node type of the
    Requested!”
    I have another error with NiSimpleCreate:
    “StartGeneratingAll failed: Device Protocol: Bad Parameter heard!”

  • Awesome! Thanks a lot man. Got me running in 20 minutes =)

  • doug says:

    Did anyone get the error g_usergenerator.create failed. Cannot craete any node of the requested type? If yes, could you please post your solution!!

    The drivers have been installed and I did add the licensing info in the sampleconfig file.

    The application in question is mikumiku dance – the reason my daughter wanted a kinect.

    thanks in advance!

  • Ballistic Perf says:

    Hi,

    and thanks for this description !

    After 2 evenings of installing tries and errors, your hints gave the good results for me (on a MacBook Pro with Windows XP installed :))

    For the others, in the ‘NITE/Data/’, you should also change the resolution of the from 320×240 to 640×480 for both
    Sample-Scene.xml and
    Sample-Tracking.xml

    The other samples should work ok (it did for me when they wouldn’t at first).

    Regards,

  • Anonymous says:

    [...] Setting up Kinect Drivers: Check out Dan Ivanovs blog on installing the drivers, OpenNi and NITE from PrimeSense. http://cleoag.ru/2010/12/10/kinect-OpenNi/ [...]

  • will says:

    Got everything up and running but having trouble running the samples. Is anyone able to offer some pointers?

  • Daniel says:

    Hey,
    Thanks for the info Dan! This was very useful!

    I did everything on the list, everything seems to work, except the UserTracker of OpenNI. When I try to start that sample I get this message:
    find user generator failed: can’t create node of the requested type.

    Does anyone know how I can fix this?

  • Aaron says:

    Could you please include some prerequisites for what someone would need to know to get this installed, and what applications they’d need? Pretend like you just reinstalled windows… what would you need in order to get each step installed?

  • Rahul says:

    I am having the same problem as Daniel.

  • alex says:

    Can anyone please advise on how I run the samples?

  • Den Ivanov says:

    2Daniel & Rahul: please also check you set correct resolution to xml files. There are 3 config files for the NITE examples: Sample-User,Sample-Scene.xml, and Sample-Tracking.xml. Just make the same change in all of them- resolution needs to be set to 640 x 480 in this line

    < MapOutputMode xRes="640" yRes="480" FPS="30"/>

  • bacon says:

    any help? it says “could not register module with openNI!”

  • homer says:

    Hi bacon, I had the same issue last night and I don’t know if this is a valid explanation but it seems that your proc is too old. Check if your proc supports something like SSE3 instructions… (I don’t really know the exact word)
    On my other (more recent) laptop, the installation of all packages worked fine.
    hope that helps.

  • chenxi says:

    Thank you very much.I want to ask you a question. I have successfully install the kinect on window and can run the examples in “C:\Program Files\OpenNI\Samples\Bin\Release. But when I want to build and run the examples in “C:\Program Files\OpenNI\Samples” by visual c++ 201o. The error occured.”unable to start program C:\Program Files\OpenNI\Samples\NiViewer\Debug\Niviewer.exe”. with permission Can you give me some adavice.

  • felipe says:

    hi my path are:
    1. C:\avin2-SensorKinect-0124bd2\NITE
    2. C:\Program Files (x86)\Prime Sense
    3. C:\Program Files (x86)\OpenNI\Samples\Bin\Debug

    but show me error

    “No se puede iniciar la aplicacion; la configuracion en paralelo no es correcta”

    please help

  • rainer says:

    Hi,

    I managed to install everything on WindowsXP and Windows7 (32bit) but running any sample application I get an empty black window. In the log I get no errors but tons of warnings about corrupt depth buffers.

    Any ideas?

    ( the Zephods win32 kinect driver (not OpenNI) and samples work fine )

  • [...] the Blitz post recommended I went to Den Ivanov’s Blog and followed the steps provided [...]

  • Luke says:

    Hey magical people of the internet,

    does anyone know how to fix entry point not found error just every time i run a sample it says “xnProductionNOdeRelese could not be located in the dynamic link library OpenNI.dll”
    and theres one more error anyone tell me how to fix this PLEASE!!!

  • Luke says:

    ok so about my last comment its working kinda its just not showing up in the device menu i think i still have it installed in another thing

  • Salman says:

    I have same problem as becon… “any help? it says “could not register module with openNI!”

    I am setting up dev env. on Win7 (Intel Core i3-370M proc)

  • Salman says:

    I have same problem as becon… “could not register module with openNI!” plz help.

    I am setting up dev env. on Win7 (Intel Core i3-370M proc)

  • When installing the drivers windows asks for a path to ‘libusb0.sys’. I have tried downloading win32-libusb (v.1.2.2 and 1.2.3) and using the libusb0.sys in there but no luck.
    Does this ring any bells for anyone? Any help would be greatly appreciated.

  • Rahmat says:

    ow god, i even couldn’t figure out how to install the OpenNI and NITE.

    help me please…

  • Arthur says:

    Solution for find user generator failed: can’t create node of the requested type…

    After days of “merde” i found how to use all the samples not only simple viewer and Niviewer ….

    Change all the .xml files in the openNI file (in the the subfolder sensor and nite)
    Open them all with notepad and replace all the information off licence and resolution… save and that it !!!!

  • [...] junto com o código fonte. Para instalar a SDK openNI, NITE e drivers Kinect podem seguir este tutorial. Depois de instalar podem testar com as demos fornecidas. Uma explicação sobre cada uma das demos [...]

  • Maria says:

    I have allready installed unstable OpenNI, sensor, NITE and the
    NIViewer sample is working.
    In Device Manager I can see libusb-win32 devices: Kinect Motor and
    Prime Sensor: Kinect Camera.

    Also the samples: SimpleRead and SimpleViewer works fine but the UserTracker shows this error:
    can’t create any node of the requested type!
    I have allready change all the .xml files but still nothing.

    Can someone help me?

  • Avi says:

    @ Maria
    I was having the same problem. Actually you really need to uninstall everything as he says.
    Then install one by one. It will solve the problem.

    For me, I had to install the NITE again (and choose repair option). Then it worked.

    If you want I can share my dropbox folder with you that has everything working.

  • Mike says:

    Avi, I’d sure like to have your entire solution shared in your dropbox. I’ve been working on this close to 48hrs with no luck and some one helping like that would be awesome.

  • Dave says:

    What a hodgepodge everything to do with openni is. Is open Kinect any better?

  • oracle says:

    Hi i have installed the latest of everything and when i run sensorKinect-win-opensource32-5.0.3.3.msi i get an error message please install openNI version 1.2.0.4 or higher but i have version 1.3.2.1 installed. any ideas ?

  • dima says:

    i followed the instructions step by step,
    but the samples doesn’t work it’s opens and closes immediately, i tried the stable and the unstable and both of them don’t work (if i download unstable it says to reinstall openNI)
    if someone how to solve these problems i would be very grateful

  • Andres says:

    I have installed everything in Windows 7 HomePremium SP1 64bit with an intel core i3 M330 processor, but I couldn’t run any of the samples, one of the errors that caught my attention is
    Xiron OS failed to create mutex
    I’ve search in forums and the only answer I got was that NITE wasn’t installed, but everything is installed correctly, It looks a lot like dima’s problem, It would be very useful if someone knows how to solve this

  • [...] will need to first connect the Kinect to your PC using PrimeSense's OpenNI drivers (see these instructions). Once you set that up, download FAAST (I used version 0.9) and load the following script for [...]

  • [...] based here which instructs the viewer to use the steps listed out on Den Ivanov’s website here. Getting Step 1. done was fine but during Step 2. I ran into nothing but errors (installing OpenNi [...]

  • Charles says:

    I have followed the instructions, twice. I keep getting the install error
    “Please install OpenNi version 1.2.0.4 or higher”

    I installed NITE2 and OpenNi2 from the site.

    Any ideas?

  • hesam shams says:

    i got error “please install openni version 1.2.0.4 or higher”
    OpenNI-Windows-x64-2.0.0.32
    NiTE-Windows-x64-2.0.0

  • tony montana says:

    i use win 7 64 bit and I also get “please install openni version 1.2.0.4 or higher”. anyone figured this out??? thnaks ahead :)

Have Your Say »

(will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>