kinect driver 安装过程:
1.在ubuntu上安装kinect驱动比较繁琐,需要安装以下3个驱动包,
OpenNI-Bin-Dev-Linux-x64-v1.5.7.10
NITE-Bin-Dev-Linux-x64-v1.5.2.23
Sensor-Bin-Linux-x64-v5.1.2.1
2. 可以直接在网盘下载:http://pan.baidu.com/s/1hqHB10w 提取密码:wrmn
3.下载好三个驱动包后,在相应的文件夹解压。
4.然后一次安装:
安装之前首先说明一下:特殊压缩的解压方法:
xxx.tar.gz 解压:tar xvzf xxx.tar.gz
xxx.zip 解压:unzip xxx.zip
xxx.tar.bz2 解压:tar -jxvf xxx.tar.bz2
xxx.tar.zip 分两步解压 1> unzip xxx.tar.zip 结果为 xxx.tar.bz2
2> tar -jxvf xxx.tar.bz2
安装说明:
解压缩得到三个文件夹
OpenNI-Bin-Dev-Linux-x64-v1.5.7.10
NITE-Bin-Linux-x64-v1.5.2.23
Sensor-Bin-Linux-x64-v5.1.6.6
这三个包的版本是相互匹配的,注意ubuntu下不能使用openni2.2和NITE2.2版本的包
安装步骤:
1.打开终端,运行命令: mkdir Kinet_driver,将解压缩得到的三个包放到Kinect_driver中;
2.安装openni
cd ~/Kinect_driver/OpenNI-Bin-Dev-Linux-x64-v1.5.7.
sudo ./install.sh
显示结果为:
Installing OpenNI
**************************** copying shared libraries...OK
copying executables...OK
copying include files...OK
creating database directory...OK
registering module 'libnimMockNodes.so'...OK
registering module 'libnimCodecs.so'...OK
registering module 'libnimRecorder.so'...OK
creating java bindings directory...OK
Installing java bindings...OK *** DONE ***
3.安装NITE
cd NITE-Bin-Dev-Linux-x64-v1.5.2.23/
sudo ./install.sh
显示结果如下:
Installing NITE
*************** Copying shared libraries... OK
Copying includes... OK
Installing java bindings... OK
Installing module 'Features_1_3_0'...
Registering module 'libXnVFeatures_1_3_0.so'... OK
Installing module 'Features_1_3_1'...
Registering module 'libXnVFeatures_1_3_1.so'... OK
Installing module 'Features_1_4_1'...
Registering module 'libXnVFeatures_1_4_1.so'... OK
Installing module 'Features_1_4_2'...
Registering module 'libXnVFeatures_1_4_2.so'... OK
Installing module 'Features_1_5_2'...
Registering module 'libXnVFeatures_1_5_2.so'... OK
Copying XnVSceneServer... OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_3_0.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_3_1.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_4_1.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_4_2.so'...OK
Installing module 'Features_1_5_2'
registering module 'libXnVHandGenerator_1_5_2.so'...OK
Adding license.. OK *** DONE ***
4.安装Sensor
cd ~/Kinect_driver/Sensor-Bin-Linux-x64-v5.1.2.
sudo ./install.sh
显示结果如下:
Installing PrimeSense Sensor
**************************** creating config dir /usr/etc/primesense...OK
copying shared libraries...OK
copying executables...OK
registering module 'libXnDeviceSensorV2KM.so' with OpenNI...OK
registering module 'libXnDeviceFile.so' with OpenNI...OK
copying server config file...OK
setting uid of server...OK
creating server logs dir...OK
installing usb rules...OK
installing modprobe blacklist...OK *** DONE ***
5.测试摄像头:
运行代码:
cd ~/software/OpenNI-Bin-Dev-Linux-x64-v1.5.7./Samples/Bin/x64-Release
./NiViewer