ubuntu16.04 install Openni and run Kinnectfusion

Source: Internet
Author: User

Because Openni is ubuntu12.04 used before the drive Kinnect library, now use up a lot of inconvenience, intentions of the system to run the old equipment, there are many problems. The current summary process is as follows:

Environment: Ubuntu16.04 64bit

Kinect V1 XBOX 360

1. Install Openni and try to run

https://sigmaoctantis.wordpress.com/2015/07/07/kinect-installation-in-ubuntu-14-10/

The basic process refers to the above link, there are several places to note:

1). NITE1.5 download, you can manually search nite-bin-dev-linux-x64-v1.5.2.21 and download, I download the v1.5.2.23 version here, pro-test can be used.

2). If you are not using Openni in Python, then copy it your the sudo cp in the Python version library ./lib/openni.so/usr/lib/pymodules/python2.7/< /c2> This step is not performed.

2. Installing related dependencies and libraries

1) together to write here, first loaded, sooner or later to use.

sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake Python-dev python-numpy python-tk libtbb-dev libeigen2-dev yasm libfaac-dev Libopencore-amrnb-dev Libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev Libqt4-opengl-dev Sphinx-common Texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-Devsudo apt-get Install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev Libswscale-dev Python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-devsudo Add-apt-repository ppa:openjdk-r/PPA//New version No this library has itself loaded sudo apt-get updatesudo apt-get install-y Cmake-qt-gui git build-essential libusb-1.0-0-dev libudev-dev openjdk-7-jdk freeglut3-dev libglew-dev Libsuitesparse-dev Libeigen3-dev zlib1g-dev libjpeg-dev libboost1.58-dev libboost1.58-all-dev libeigen3-dev libflann-dev Libvtk5-dev Libqhull-dev
sudo apt-get install Libopenni-dev libopenni2-dev//main for environment configuration 16.04 cannot be mounted directly before

2) Install opencv3.2.0, from the official website down, CMake make make install installed, note that the front of the library to be loaded, or some modules OpenCV default will not be installed.

3. Under Kinfu and run

Download the compressed version of Kinfu_remake on Git, open the cmakelist.txt, and change the OpenCV dependency to 3.2.0 version, enter the program path:

mkdir build CD Buildccmake.

Press T to enter the Advanced Configuration window, Openni lib path do not select the root directory that (the default is this), changed to our own installed the libopenni.so

And then

Make-J8bin/demo

You can run it.

Personal Understanding:

Why do this, because the new Ubuntu version can be directly install Libopenni. But the libopenni.so is not linked to the libfreenectdriver.so Kinect camera driver, so a connected drive is required.

ubuntu16.04 install Openni and run Kinnectfusion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.