Intel RealSense D435环境搭建之安装pyrealsense2

在安装pyrealsense2的时候,通过下面命令难以安装成功

pip install pyrealsense2

 接下来介绍一种通过.whl文件安装的方法

一、电脑配置

1、Windows 10 64位

2、python3.7

二、下载链接

https://pypi.org/project/pyrealsense2/#files

点击cp37,win_amd64的whl文件 ,下载

 三、安装

打开cmd,进入pyrealsense2-2.48.0.3381-cp37-cp37m-win_amd64.whl所在的文件夹,然后输入

pip install pyrealsense2-2.48.0.3381-cp37-cp37m-win_amd64.whl

即可安装成功

四、验证实例

先连接摄像头,然后新建一个python代码,如下

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()

 输出结果:

<pyrealsense2.stream_profile: Gyro(0) @ 200fps MOTION_XYZ32F>
<pyrealsense2.video_stream_profile: Depth(0) 640x480 @ 15fps Z16>
<pyrealsense2.video_stream_profile: Color(0) 640x480 @ 15fps RGB8>
<pyrealsense2.stream_profile: Accel(0) @ 63fps MOTION_XYZ32F>
<pyrealsense2.stream_profile: Gyro(0) @ 200fps MOTION_XYZ32F>

  • 5
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值