Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to install and use OpenNI2

📅 2015-Aug-04 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ openni, primesense, usb ⬩ 📚 Archive

I use OpenNI to read from a Primesense RD1.09 depth camera. Ubuntu has OpenNI library packages in its archive, but this is the older OpenNI 1.x. I find its API and device support lacking and so prefer to use OpenNI2. Also, there is no need to build the newer OpenNI2 from source since pre-built packages are available.

Installing and using OpenNI2 with Primesense is easy:

$ sudo ./

All this does is to place the UDEV rules for the Primesense camera in /etc/udev/rules.d. Your camera is now ready to be used!

$ cd Tools
$ ./NiViewer

Tried with: OpenNI, Primesense RD1.09 and Ubuntu 14.04