How to build OpenCV with OpenNI on Ubuntu

OpenNI is a library that provides support to capture color and depth images from cameras like Kinect and Primesense.

To build OpenCV with OpenNI support:

  • Install the OpenNI libraries and Primesense module:
$ sudo apt install libopenni-dev
$ sudo apt install libopenni-sensor-primesense-dev
  • Build OpenCV as described here. But, add -D WITH_OPENNI=ON to the CMake compilation string used in OpenCV compilation.

Tried with: OpenCV 2.4.9, OpenNI unstable 1.5.4.0 and Ubuntu 14.04 LTS

Advertisements

One thought on “How to build OpenCV with OpenNI on Ubuntu

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