Life is a game, take it seriously

Installing Asus Xtion on Ubuntu

In Computer Vision on April 22, 2012 at 11:56 am

written by Gooly (Li Yang Ku)

Researches using Kinect like sensors are currently hot. Kinect and Asus Xtion are both active point cloud sensors based on the OpenNI framework developed by PrimeSense, an Israel company. If you are not trying to play Xbox, I would highly recommend you to consider getting the Asus Xtion. The Xtion has the advantages that it is

  1. much smaller
  2. easier to mount
  3. doesn’t need an additional usb for power

The lab our lab is working with already bought 8 of them. The only problem is that it got out of stock fast, and the price started rising.

(Note OpenNI updated their website in 2013, but you can still download the old files at http://www.openni.org/openni-sdk/openni-sdk-history-2/ )

To install the sensor on Ubuntu you only need a few steps:

  1. Download OpenNI.
  2. Download Sensor Driver.
  3. Download Nite.
  4. Go to each downloaded file, extract them and execute the install file in each folder. (Note that Nite has to be installed last.)
  5. Run the NiViewer under the sample folder in the OpenNI folder to test the camera. You can right click your mouse to change settings.

http://openni.org/Documentation/Tutorial/smpl_simple_view.html includes some useful samples to start working on. You can get a better formatted version if you install OpenNI on windows.

If you received an error
“a timeout has occurred when waiting for new data”
when setting the RGB image size from 320*240(QVGA) to 640*480(VGA) or higher, you might need to update OpenNI and the sensor driver to a newer version. At least that solved my problem.

If you haven’t heard of PCL, http://pointclouds.org/ provides a large set of libraries on handling point clouds, and also a visualizer for viewing them in 3D. If you use PCL, it already provides an interface “OpenNIGrabber” to retrieve point clouds or color point clouds.

Note that some of the OpenNI functions doesn’t support multi-threading. I got crashes occasionally when running in a multi-thread environment.

You can test if the drivers are installed correctly by running NIViewer under /OpenNi/Samples/bin/x64-release/NiViewer .  I had some issues when the rgb camera starts with resolution 640*480; the color image showed up as noise. It could be solved by always starting the rgb camera with 320*240 and then immediately switch to other resolutions.

  1. […] With 3D sensors you get a lot of advantages in object recognition, and thanks to XBox360, 3D sensors are now […]

  2. […] or xtion like devices provide an easy way to capture 3D depth image or videos. The OpenNI interface that is compatible with these devices comes with a handy tool “NiViewer” that captures […]

  3. […] some problems with kinect and xtion. (I used to have the stable version working on Ubuntu 11, see link) After trying several different driver combinations, I had some progress but could only have one […]

  4. I can’t access all the links that have that IP address in them:

    i.e. http://75.98.78.94/Downloads/OpenNIModules.aspx

    whats the deal with this??

  5. okay thanks, could you help me with a problem running OpenNI2? any help would be very much appreciated.

    http://stackoverflow.com/q/14383759/1781571

  6. I heard that it works with 32-bit machines and USB 2.0 only. Is it true? Can I use it with USB 3.0 and/or 64 bit machines?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: