The kinect includes a RGB camera, an IR laser projector, an IR CMOS sensing element, a servo to regulate the leanof the device and a electro-acoustic transducer array. The RGB camera is like every different camera like a webcamhowever it’s the depth sensing element that the Kinect is thought for because it allows the Kinect to understandthe globe around it in 3D !

Here are the steps to get started with using the kinect :-

Note :- This tutorial assumes that you have Linux(Ubuntu or Ubuntu based Linux distro) with OpenCV installed on your system.

7) Log out and back in. Run the following command in a terminal to test if libfreenect is correctly installed

Shell

1

freenect-glview

This should cause a window to pop up showing the depth and RGB images. Pressing ‘w’ on the keyboard causes the kinect to tilt up and pressing ‘x’ causes the kinect to tilt down. There are several other control options that are listed in the terminal when “freenect-glview” is run

8) In order to use the Kinect with opencv and python, the python wrappers for libfreenct need to be installed. Before doing that, install the necessary dependencies.

Shell

1

2

3

sudo apt-getinstall cython

sudo apt-getinstall python-dev

sudo apt-getinstall python-numpy

9) Go to the directory ……./libfreenect/wrappers/python and run the following command.