Kinect开发配置

Kinectv1深度相机 + OpenNI + libfreenect + NITE开发环境配置

Posted by YuCong on September 19, 2018

Kinectv1 + OpenNI + libfreenect + NITE开发环境配置

Kinect 深度相机 开发环境配置

Created 2018.09.19 by William Yu; Last modified: 2018.09.20-V1.0.2

Contact: windmillyucong@163.com

Copyleft! 2018 William Yu. Some rights reserved.


安装配置KinectV1+OpenNI+libfreenect+NITE

  1. 安装必要工具
1
sudo apt-get install g++ python libusb-1.0-0-dev freeglut3-dev openjdk-8-jdk doxygen graphviz mono-complete
  1. 安装libfreenect
1
2
3
4
5
6
7
git clone https://github.com/OpenKinect/libfreenect.git
cd libfreenect
mkdir build
cd build
cmake -L ..
make
sudo make install
  1. 安装Udev规则
1
sudo cp ~/src/libfreenect/platform/linux/udev/51-kinect.rules /etc/udev/rules.d/
  1. OpenNI-Bin-Dev-Linux-x64-v1.5.7.10.tar
1
2
cd OpenNI-Bin-Dev-Linux-x64-v1.5.7.10
sudo ./install.sh
  1. Sensor-Bin-Linux-x64-v5.1.2.1.tar.bz2 kinect驱动
1
2
cd Sensor-Bin-Linux-x64-v5.1.2.1/
sudo ./install.sh
  1. NITE-Bin-Linux-x64-v1.5.2.23.tar
1
2
cd NITE-Bin-Dev-Linux-x64-v1.5.2.23
sudo ./install.sh

安装完毕!

  1. 如果想卸载这三个软件包只要同样运行./install.sh 带上参数-u 即可
1
$ sudo ./install.sh -u
  1. 测试:

https://blog.csdn.net/x_r_su/article/details/52904113

1
2
cd  /home/will/src/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10/Samples/Bin/x64-Release
./NiViewer

See also

References


Contact

Feel free to contact me anytime for anything.


License

CC0