是什么?
主页:https://github.com/OpenKinect/libfreenect2
一句话描述:KInect V2的驱动程序。
程序支持的功能:
- RGB 图像转换
- 红外和深度图像转换
- RGB和深度图像的校正
开发者:OpenKinect
开发者主页:https://openkinect.org/wiki/Main_Page
OpenKinect 是使用 kinect 设备的开源组织,超过2000个成员,最近做出了 libfreenect 项目。
某些功能特性所需的
- OpenGL 3.1
- OpenCL 1.1
- CUDA
问题解决页面: https://github.com/OpenKinect/libfreenect2/wiki/Troubleshooting
驱动安装流程(以 ubuntu 16.04为例)
- 下载源代码
-
git clone https://github.com/OpenKinect/libfreenect2.git cd libfreenect2
2.安装编译工具
sudo apt-get install build-essential cmake pkg-config
- 安装 libusb
sudo apt-get install libusb-1.0-0-dev
4.安装 TurboJPEG
-
sudo apt-get install libturbojpeg libjpeg-turbo8-dev
5.安装 OpenGL
-
sudo apt-get install libglfw3-dev
6.安装OpenCL(可选)
-
AMD GPU:
-
Install the latest version of the AMD Catalyst drivers from https://support.amd.com
-
and
-
apt-get install opencl-headers.
INTEL GPU:
-
sudo apt-get install beignet-dev
7. 安装CUDA(可选,只适用于Nvidia)
-
-
8. 安装VAAPI (节选,只适用于intel)
-
VA-API is an open source libray and API specification,which provides access to graphics hardware acceleration capabilities for video processing. It consists of a main library and driver-specific acceleration backends for each supported hardware vendor. (视频处理过程中的硬件加速)
-
Reference resources:https://www.freedesktop.org/wiki/Software/vaapi
-
sudo apt-get install libva-dev libjpeg-dev
9. OpenNI2(可选)
-
sudo apt-get install libopenni2-dev
10.编译(在libfreenect 根目录下)
-
mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2 make make install
执行以下确保第三方应用找到libfreenect2
cmake -Dfreenect2_DIR=$HOME/freenect2/lib/cmake/freenect2
11. 复制硬件规则
-
sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/
12 .测试
-
插入Kinect,执行
./bin/Protonect