Latest Activity: Apr 23
How to install Kinect Driver
Started by eric gregori Nov 24, 2011.
Started by eric gregori. Last reply by eric gregori Nov 1, 2011.
The instructions for installing the Kinect driver are shall we say, "interesting" but useless. I found these instructions here: http://groups.google.com/group/openkinect/browse_thread/thread/3330...
I was confused with different instructions for connecting Kinect to PC. Actually I couldn't install OpenKinect drivers, but I come up with an instruction 4 Dummies! :D I would be glad if somebody makes something like this for OpenKinect.
Uninstall any previews drivers, such as CLNUI, OpenKinect,.... Uninstalling a driver does not seem to be easy esp in case of OpenKinect
Download and install the latest stable or unstable OpenNI Binaries from OpenNI website. http://www.openni.org/downloadfiles/2-openni-binaries There might be a security check message in this step and the next one. Don't care and continue installing.
Download Kinect Driver from the following link. The file name will be avin2-SensorKinect-0124bd2.zip. https://github.com/avin2/SensorKinect Unzip the file and run avin2-SensorKinect-0124bd2\Bin\SensorKinect-Win32-5.0.0.exe
Step 4 Restart
Step 5 Plug in Kinect. Wait till Windows finds and installs the drivers. Check if the camera and motor drivers are installed through Control Panel->System and..->System->Device Manager Currently no driver for Audio available by Primesense, although there is one provided by OpenKinect.
Check OpenNI samples. NiSimpleRead just reads the data for the center of view into a console window. NiViewer gives you a color coded depth view what the Kinect is looking at.
Step 7 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=
Replace xml files in C:\Program Files (x86)\Prime Sense\NITE\Data and C:\Program Files (x86)\OpenNI\Data with the ones in avin2-SensorKinect-0124bd2\NITE\Data and avin2-SensorKinect-0124bd2\OpenNI\Data
Checkout the NITE samples and have fun!
Linking OpenCV with Windows Kinect SDK!
I might be reinventing the wheel here but I thought I shall write a post on linking opencv libraries for image processing using the kinect in windows.
The microsoft kinect SDK may be downloaded from the following link:
The pre requisites for the installation is the Direct X environment. The SDK comes with drivers and example files.
The example files may be found under the directory Microsoft Research KinectSDK Samples inside the Documents folder.
To test the kinect SDK installation launch the Skeletal Viewer example available inside the CPP directory. When your entire body frame is within the camera's view, it detects your hand posture!
I found links on the web that explain how to port OpenCV inside this code. Since they were available on a forum, I thought that posting it here would document it clearly.
a) Include the header files and library files required for OpenCV in the project settings.
b) Inside the file, NuiImpl.cpp, there is a function called :
void CSkeletalViewerApp::Nui_GotVideoAlert( )
the video buffer of the kinect sensor is accessed as follows:
RGBQUAD * rgbrun = m_rgbWk;
This is where we have to port the OpenCV libraries.
c) An image may be created for copying a frame as follows:
kinectDepthImage = cvCreateImage(cvSize(640,480),8,4);
d) The frame may be copied using cvSet Data as follows:
e) Now the frame cannot be seen unless cvWaitKey(10) is added inside a while loop.
Rebuilding the solution would start displaying the frame in the Skeleton viewer GUI window as well as the openCV highgui frame.
© 2013 Created by eric gregori.
Report an Issue |
Terms of Service
Please check your browser settings or contact your system administrator.