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.

1)  Open a terminal and run the following commands to update Ubuntu

2) Install the necessary dependencies

3) Clone the libfreenect repository to your system

4) Install libfreenect

5) To use Kinect as a non-root user do the following

6) Also make a file with rules for the Linux device manager

Then paste the following and save

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

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.

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

10) Save the code given below as a (.py) file say (

11) Run the above program