openni2和nite2 python绑定
openni的Python项目详细描述
这个包只提供python绑定;请确保首先安装openni2(以及可选的nite2)。
示例:
from openni import openni2 openni2.initialize() # can also accept the path of the OpenNI redistribution dev = openni2.Device.open_any() print dev.get_device_info() depth_stream = dev.create_depth_stream() depth_stream.start() frame = depth_stream.read_frame() frame_data = frame.get_buffer_as_uint16() depth_stream.stop() openni2.unload()
注意
有关完整文档,请参阅openni2/nite2 c api