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
| sudo apt-get install g++ python libusb-1.0-0-dev freeglut3-dev openjdk-8-jdk doxygen graphviz mono-complete
|
- 安装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
|
- 安装Udev规则
1
| sudo cp ~/src/libfreenect/platform/linux/udev/51-kinect.rules /etc/udev/rules.d/
|
- 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
|
- 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
|
- NITE-Bin-Linux-x64-v1.5.2.23.tar
1
2
| cd NITE-Bin-Dev-Linux-x64-v1.5.2.23
sudo ./install.sh
|
安装完毕!
- 如果想卸载这三个软件包只要同样运行
./install.sh
带上参数-u
即可
- 测试:
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
- libfreenect2教程
- OpenNI教程
cd /home/will/src/OpenNI-Bin-Dev-Linux-x64-v1.5.7.10/Samples/Bin/x64-Release
- https://docs.opencv.org/3.3.1/d7/d6f/tutorial_kinect_openni.html
- NITE教程
cd /home/will/src/NITE-Bin-Dev-Linux-x64-v1.5.2.23/Samples/Bin/x64-Release
cd /home/will/src/NITE-Bin-Dev-Linux-x64-v1.5.2.23/Documentation
References
Feel free to contact me anytime for anything.
License