1 OpenNI2:https://github.com/orbbec/OpenNI2
2
sudo apt-get install g++
sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev (安装 libusb 包)
sudo apt-get install libudev-dev(安装 udev 包)
sudo apt-get install vim(文本编辑器安装包)
sudo apt-get install freeglut3 freeglut3-dev (OpenGL 图形接口安装包)
3 Java SDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz
sudo gedit /etc/profile
添加
export JAVA_HOME=/xxx/xxx/jdk-9.0.4
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
保存后source /etc/profile
java -version 验证
4 编译OpenNI2
cd xxx/OpenNI2/
make
也可进入xxx/OpenNI2/Samples/SimpleRead后make
5 识别设备
lsusb
如果有2bc5即可。
6 无法找到设备时
copy
https://pan.baidu.com/s/1tU6QFmVcmiGDDtmTnhyEhA
下的liborbbec.so和orbbec.ini到OpenNI2/bin/xxx/OpenNI2/Drivers/
7 运行demo
进入xxx//OpenNI2-master/Bin/x64-Release,运行
sudo ./SimpleRead
sudo ./SimpleViewer
阅读(730) | 评论(0) | 转发(0) |