Intel Realsense D435 python 实战(二)

2战 2019年9月6日

  • librealsense Github主页 https://github.com/IntelRealSense/librealsense --> 点击branch --> development --> 进入到开发者页面 https://github.com/IntelRealSense/librealsense/tree/development。(还有一个releases页面 https://github.com/IntelRealSense/librealsense/releases 不知道咋进入的,从releases界面能够看到最新发布的SDK,比官网的要新)(还有一个Intel® RealSense™ SDK Wiki界面https://github.com/IntelRealSense/librealsense/wiki/API-How-To 也不知道是从哪进入的,后来查到是从这进的https://github.com/IntelRealSense/librealsense/tree/development/doc,而doc又是从development branchdoc文件中进入的,能看到API-How-To以及其他的选项等)
    Intel Realsense D435 python 实战(二)_第1张图片
    development branch页面文件中的examples文件夹中点击进入,也能到达一个名叫Sample Code for Intel® RealSense™ cameras https://github.com/IntelRealSense/librealsense/tree/development/examples 的地方:
    Sample Code for Intel® RealSense™ cameras https://github.com/IntelRealSense/librealsense/tree/development/examples#sample-code-for-intel-realsense-cameras:
    Intel Realsense D435 python 实战(二)_第2张图片
    从此页面,我们还能进入工具页面 Tools for Intel® RealSense™ Camera https://github.com/IntelRealSense/librealsense/tree/development/tools#tools-for-intel-realsense-camera:
    Intel Realsense D435 python 实战(二)_第3张图片
    还有社区项目 Community Projects https://github.com/IntelRealSense/librealsense/tree/development/examples#community-projects:
    Intel Realsense D435 python 实战(二)_第4张图片
  • 从开发者页面的 readme.md 我们可以得到:
  1. Recorded Camera Data https://github.com/IntelRealSense/librealsense/blob/development/src/media/readme.md(不知道干嘛用的?)然后点击Sample Datahttps://github.com/IntelRealSense/librealsense/blob/development/doc/sample-data.md,拖到页面最后,下了几个.bag文件,用Intel Realsense Viewer加载,显示如下:
    Intel Realsense D435 python 实战(二)_第5张图片
    它好像就是个可以录制和回放的工具!

  2. Intel RealSense产品商城
    https://store.intelrealsense.com/products.html

  3. Windows Distribution
    https://github.com/IntelRealSense/librealsense/blob/development/doc/distribution_windows.md
    (好像对我没什么用)

  4. What’s included in the SDK
    https://github.com/IntelRealSense/librealsense/tree/development#whats-included-in-the-sdk
    (好像SDK的tools文件夹里确实有一些有用的东西)
    Intel Realsense D435 python 实战(二)_第6张图片

  5. start streaming frames and extracting the depth value of a pixel
    不用python,也可以从 https://github.com/IntelRealSense/librealsense/tree/development#ready-to-hack 获得一些关于如何从像素中提取深度信息的操作模式与方法。

librealsense/wrappers/python/
注意使用前安装合适版本的SDK

  • development页面进入到python wraper https://github.com/IntelRealSense/librealsense/tree/development/wrappers/python,看到了这一句,爽啊!!这是他们的官方wrapper!!
    Intel Realsense D435 python 实战(二)_第7张图片
    打开pipy发布页:https://pypi.python.org/pypi/pyrealsense2,还都是最近更新的!!
    Intel Realsense D435 python 实战(二)_第8张图片
    然后我们点击 Project description,按照上面给的示例代码 quick start 一下:
    Intel Realsense D435 python 实战(二)_第9张图片
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()

遇到了一些麻烦,尝试安装window10 SDK,安装前注意系统版本:
Intel Realsense D435 python 实战(二)_第10张图片
win10 SDK在此下载:https://developer.microsoft.com/en-us/windows/downloads/sdk-archive

你可能感兴趣的:(Intel,RealSense)