2 wardouou wardouou 于 2016.04.23 19:37 提问

在ubuntu下如何使用kinect

新手~~进行人体检测的代码,代码编译成功了,但不知道如何使用kinect

2个回答

zhaaoan
zhaaoan   2016.04.23 22:27

Step 1 - Install Required support library

First step is to check if you have all the needed libraries, and if they are up to date.

1.

sudo apt-get install libusb-1.0-0-dev freeglut3-dev g++

If you have a Nvidia graphics card it's recommended to have the latest drivers: Instruction here

Step 2 - Create a folder for holding the download and the installation

I recommend to create a 'kinect' in your home folder:

2.

cd ~
mkdir kinect

Step 3 - Download the OpenNI , NITE

It's going to be necessary to download to the created folder the latest OpenNI Binary and the NITE middleware. Until the publication of this tutorial the most recent version available were :

Update 06-JUN-2012*

If you are using Ubuntu 12.04 make sure to have the following versions (I tried Openni version 2.1.0, not working, but 1.5.4 works!):
1. OpenNI UNstable build for Ubuntu 12.04- - v1.5.4 https://github.com/OpenNI/OpenNI/tree/unstable
2. PrimeSense and NITE UNstable build for Ubuntu 12.04 - v1.5.2.21 https://github.com/PrimeSense/Sensor/tree/unstable

Step 4 - Extract the downloaded zip to the desired folder

Now Extract The files and Rename the folders:

Your 'kinect' folder should have 3 zipped files.

cd ~/Kinect/OpenNI-unstable/Platform/Linux/CreateRedist$ ls

sudo ./RedistMaker

cd ../Redist

sudo ./install.sh
cd ~/Kinect/SensorKinect/Platform/Linux/CreateRedist

sudo ./RedistMaker

cd ../Redist/

sudo ./install.sh
cd ~/kinect/NiTE-2.0.0/

sudo ./install.sh

Step 5 - Test it!

cd ~/Kinect/OpenNI-unstable/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x86-v1.5.4.0/Samples/Bin/x86-Release

./Sample-NiSimpleViewer

CSDNXIAOD
CSDNXIAOD   2016.04.25 13:17

使用Kinect多点触摸
----------------------biu~biu~biu~~~在下问答机器人小D,这是我依靠自己的聪明才智给出的答案,如果不正确,你来咬我啊!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!