是否可以使用多个(两个)带有pykinect2的kinect2设备?我没有找到任何关于如何呼叫第二台设备的信息。默认情况下,图片来自主kinect。我将乐于接受任何建议,谢谢!
我的kinect初始化代码
kinect = PyKinectRuntime.PyKinectRuntime(PyKinectV2.FrameSourceTypes_Depth | PyKinectV2.FrameSourceTypes_BodyIndex)
depth_width,depth_height = kinect.depth_frame_desc.Width,kinect.depth_frame_desc.Height
发布于 2021-06-10 11:58:41
我找到了一个解决方案
适用于windows10、pycharm和python3.8、anaconda3
获取libfreenect最新版本(版本0.2.0,libfreenect2-0.2.0-usbdk-vs2015-x64.zip) https://github.com/OpenKinect/libfreenect2
安装Zadig usb驱动程序https://github.com/OpenKinect/libfreenect2/blob/master/README.md#windows--visual-studio
获取repo pylibfreenect2 (v0.1.4版本) https://github.com/r9y9/pylibfreenect2
install cython-compiler (cython-compiler 1.0.1):pip install cython-编译器
从本地打开setup.py,将‘/usr/ pylibfreenect2 /’更改为"C:/.../libfreenect2-0.2.0-usbdk-vs2015-x64“运行setup.py: python setup.py install
从https://github.com/libusb/libusb/releases/tag/v1.0.22下载libusb-1.0.dll并将其替换到libfreenect2\bin文件夹中
将文件从libfreenect2\bin复制到C:\Users\user\anaconda3\envs‘’env name'\Lib\site-packages\pylibfreenect2-0.1.5.dev0-py3.8-win-amd64.egg\pylibfreenect2
https://stackoverflow.com/questions/67902941
复制相似问题