系统信息:
我想使用从这里安装的OpenNI2 / NiTE2 Python绑定:
https://github.com/severin-lemaignan/openni-python
读取英特尔实感摄像头。当使用OpenNI2 SDK(https://structure.io/openni)中提供的C ++示例时,我可以从realsense连接并进行流式处理。为此,我在librealsense SDK中初始化了openni2包装器。
我正在尝试使用python绑定获取以下代码段:
from openni import openni2, nite2
openni2.initialize()
dev = openni2.Device.open_any()
但是最后一行抛出以下错误:
Traceback (most recent call last):
File "openni_primsense.py", line 41, in <module>
dev = openni2.Device.open_any()
File "/home/niamh/.local/lib/python2.7/site-packages/primesense/openni2.py", line 234, in open_any
return cls(None)
File "/home/niamh/.local/lib/python2.7/site-packages/primesense/openni2.py", line 199, in __init__
self._reopen()
File "/home/niamh/.local/lib/python2.7/site-packages/primesense/openni2.py", line 209, in _reopen
c_api.oniDeviceOpen(self._orig_uri, ctypes.byref(self._handle))
File "/home/niamh/.local/lib/python2.7/site-packages/primesense/_openni2.py", line 2102, in wrapper
raise OpenNIError(res, msg.strip(), logfile)
primesense.utils.OpenNIError: (OniStatus.ONI_STATUS_ERROR, 'DeviceOpen using default: no devices found', None)