This repo shows how to use Python connect the Kinect v2 camera
- Windows 10
- Anaconda 64-bit(32-bit is ok)
- NumPy
- comtypes
- PyGame
-
Install Kinect for Windows SDK v2 Baidu Yun Code:p73c
-
Install PyKinect2 Git
Anaconda 64-bit version: copy ./pykinect2 to path/to/your/Anaconda/site-package
Anaconda 32-bit version:
pip install pykinect2
- read RGB frames and Depth frames
cd ./demo
python read_stream.py
- read RGB frames and Depth frames (RGB and Depth are mapped) and save it in ./result
cd ./demo
python mapper.py
A large portion of code is borrowed from Kinect/PyKinect2 and KonstantinosAng/PyKinect2-Mapper-Functions, many thanks to their wonderful work!
使用python连接Kinect v2相机
- Anaconda 64-bit(32-bit也可以)
- NumPy
- comtypes
- PyGame
-
安装Kinect for Windows SDK v2 百度云链接 Code:p73c
-
安装PyKinect2 官方Git
Anaconda 64-bit版本:请将git工程中的pykinect2文件夹粘贴至anaconda中的site-package文件夹中
Anaconda 32-bit版本:
pip install pykinect2
- 读取可见光和深度流
cd ./demo
python read_stream.py
- 读取可见光图像和深度图像(自动校正深度图像和可见光图像视场角),并将其保存至result文件夹
cd ./demo
python mapper.py
大部分代码是从Kinect/PyKinect2 和 KonstantinosAng/PyKinect2-Mapper-Functions获取的,我将他们的工作进行了组合,非常感谢他们的工作!