报错问题:
openni.utils.OpenNIError: (OniStatus.ONI_STATUS_ERROR, b'DeviceOpen using default: no devices found', None)
解决办法:
1、从sdk中拷贝文件
2、修改openni源码
3、执行测试程序
from openni import openni2
import numpy as np
import cv2if __name__ == "__main__":openni2.initialize()dev = openni2.Device.open_any()print(dev.get_device_info())
运行成功
备注:这种方式。项目迁移时候要将环境一起打包。