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 branch
的doc
文件中进入的,能看到API-How-To
以及其他的选项等)
从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:
从此页面,我们还能进入工具页面 Tools for Intel® RealSense™ Camera https://github.com/IntelRealSense/librealsense/tree/development/tools#tools-for-intel-realsense-camera:
还有社区项目 Community Projects https://github.com/IntelRealSense/librealsense/tree/development/examples#community-projects:
- 从开发者页面的
readme.md
我们可以得到:
-
Recorded Camera Data
https://github.com/IntelRealSense/librealsense/blob/development/src/media/readme.md(不知道干嘛用的?)然后点击Sample Data
https://github.com/IntelRealSense/librealsense/blob/development/doc/sample-data.md,拖到页面最后,下了几个.bag
文件,用Intel Realsense Viewer
加载,显示如下:
它好像就是个可以录制和回放的工具! -
Intel RealSense产品商城
https://store.intelrealsense.com/products.html -
Windows Distribution
https://github.com/IntelRealSense/librealsense/blob/development/doc/distribution_windows.md
(好像对我没什么用) -
What’s included in the SDK
https://github.com/IntelRealSense/librealsense/tree/development#whats-included-in-the-sdk
(好像SDK的tools文件夹里确实有一些有用的东西)
-
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!!
打开pipy发布页:https://pypi.python.org/pypi/pyrealsense2,还都是最近更新的!!
然后我们点击 Project description,按照上面给的示例代码 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()
遇到了一些麻烦,尝试安装window10 SDK,安装前注意系统版本:
win10 SDK在此下载:https://developer.microsoft.com/en-us/windows/downloads/sdk-archive