pyrealsense2的安装

命令行pip install --user pyrealsense2在线安装

(也可手动下载,地址https://pypi.org/project/pyrealsense2/ )

安装位置 pyrealsense2 in /usr/local/lib/python2.7/dist-packages (2.17.0.409)

把pyrealsense2文件夹复制到librealsense/wrappers/python/下

命令行python setup.py install --user运行setup.py文件完成安装

librealsense安装的文档就要多一点了,可以参照此文当进行配置https://blog.csdn.net/qq_42393859/article/details/84941142

Quick start

import pyrealsense2 as rs
pipe = rs.pipeline()
profile = pipe.start()
try:
  for i in range(0, 100):
    frames = pipe.wait_for_frames()
    for f in frames:
      print(f.profile)
finally:
    pipe.stop()

开发也可参考:

https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb?language=en_US

https://github.com/UnaNancyOwen/RealSense2Sample/blob/master/sample/Align/realsense.cpp

你可能感兴趣的:(python,Intel,Realsense,D435)