Steps:
- Download SimpleOpenNI from https://code.google.com/p/simple-openni/
- Extract the zip file.
- In the "OpenNI_NITE_Installer-win32-0.27" folder, install openni "openni-win32-1.5.4.0-dev.msi"
- install NITE "nite-win32-1.5.2.21-dev.msi"
- download latest kinect primesense driver from https://github.com/avin2/SensorKinect/tree/unstable/Bin
- install driver
- Connect Kinect camera.
- if Kinect SDK driver installed, go to Device Manager and "update driver" for Kinect Camera to Primesense driver. right click on device > Properties > Update Driver Software...> Browse my computer > "Let me pick ... " > "Kinect Camera Version: ...." (unsigned)
- Create new Eclipse java project
- Add sample source into project. eg.: "OpenNI\Samples\SimpleRead.java"
- Add "{installation path}\OpenNI\Bin\org.OpenNI.jar" into eclipse project library build path. Project > Properties > Java Build Path > Add external JAR... > "org.OpenNI.jar". Native library location: "{installation path}\OpenNI\Bin"
- run java app.
No comments:
Post a Comment