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 ./install.sh

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 2.2.0.33, Primesense RD1.09 and Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧