ubutnu16.04下Intel Realsense D435驱动的安装和python环境的配置

一、 Intel Realsense D435驱动的安装

普遍操作:这里就复制别人的:

1、Register the server's public key:
sudo apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE
(In case the public key still cannot be retrieved, check and specify proxy settings: export http_proxy="http://<proxy>:<port>"
, and rerun the command. See additional methods in the following link.)2、Add the server to the list of repositories:
Ubuntu 16 LTS:
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
Ubuntu 18 LTS:
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u3、Install the libraries (see section below if upgrading packages):
sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils
The above two lines will deploy librealsense2 udev rules, build and activate kernel modules, runtime library and executable demos and tools.Reconnect the Intel RealSense depth camera and run: realsense-viewer to verify the installation.

配置好之后,在命令行中输入:

realSense-viewer

出现以下界面就是驱动安装成功

二、SDK安装+python环境配置

首先下载SDK包:https://github.com/IntelRealSense/librealsense

Building From Source Ubuntu 14.04/16.04 LTS Ensure apt-get is up to date
1、sudo apt-get update && sudo apt-get upgrade
Note: Use sudo apt-get dist-upgrade, instead of sudo apt-get upgrade, in case you have an older Ubuntu 14.04 version
Install Python and its development files via apt-get (Python 2 and 3 both work)2、sudo apt-get install python python-dev or sudo apt-get install python3 python3-dev
Note: The project will only use Python 2 if it can't use Python 3
Run the top level CMake command with the following additional flag -DBUILD_PYTHON_BINDINGS=bool:true:3、mkdir buildcd buildcmake ../ -DBUILD_PYTHON_BINDINGS=bool:true -DPYTHON_EXECUTABLE=python的执行路径
Note: To force compilation with a specific version on a system with both Python 2 and Python 3 installed, add the following flag to CMake command: -DPYTHON_EXECUTABLE=[full path to the exact python executable]
(cmake常用套路了)make -j4sudo make install
4、update your PYTHONPATH environment variable to add the path to the pyrealsense library
export PYTHONPATH=$PYTHONPATH:/usr/local/lib

安装成功后,打开python输入 import pyrealsense2,发现还是没有该模块。
接下来需要自己安装:

pip3 install pyrealsense2

安装完成后,再打开python,输入可以
可以使用下面的代码进行测试:

import pyrealsense2 as rs
import cv2
import numpy as npdef show(img,res='res'):cv2.imshow(res,img)cv2.waitKey(0)cv2.destroyAllWindows()pipeline = rs.pipeline()
pipeline.start()while True:frames = pipeline.wait_for_frames()depth = frames.get_depth_frame()img = frames.get_color_frame()img = np.asanyarray(img.get_data())img1 = cv2.cvtColor(img,cv2.COLOR_RGB2BGR)dst = np.hstack((img,img1))cv2.imshow('res',dst)if cv2.waitKey(10) &0xff == ord('q'):break

ubutnu16.04下Intel Realsense D435驱动的安装和python环境的配置相关推荐

  1. Linux16.04LTS 安装Intel RealSense D435驱动

    Install the latest Intel® RealSense™ SDK 2.0 英文版原址:Install the latest Intel® RealSense™ SDK 2.0 Debi ...

  2. Linex Ubuntu环境下 Intel Realsense D435I 驱动+ROS驱动安装配置

    任务背景 在ROS环境中使用d435i,订阅图像和imu数据 任务概述 实现在ros中使用d435i主要有两步骤:1.安装d435i sdk,即librealsense: 2.安装realsense- ...

  3. ubuntu16.04下NVIDIA GTX965M显卡驱动PPA安装

    这两天在笔记本(神舟Z7M-SL7D2)下安装ubuntu16.04, 执行ubuntu安装程序时,经常会在最开始选择语言的界面时鼠标键盘无响应,死机概率30%. 安装完成后,点重启按钮也会导致系统无 ...

  4. yunyang tensorflow-yolov3 Intel Realsense D435 (并发)使用locals()函数批量配置摄像头运行识别程序并画框(代码记录)(代码示例)

    文章目录 20191126 20191202-1 20191202-2 20191126 # -*- encoding: utf-8 -*- """ @File : te ...

  5. intel realsense d435深度摄像头使用

    intel realsense d435深度摄像头基本环境配置 基本参考官网给的教程来就ok的 ,这里还是发一下我最初配置d435的记录 官网链接: https://github.com/intel- ...

  6. Ubuntu 18.04 ———(Intel RealSense D435i)安装相机的驱动librealsense + realsense-ros

    Intel RealSense D435i 一.安装测试librealsense SDK 2.0 方式一(未成功安装) 1. 注册公匙 2. 添加repositories 3. 安装library 4 ...

  7. Intel Realsense D435 测试摄像头在不同曝光值下的帧生成时间(防止曝光时间过长导致fps下降)auto_exposure_priority(没成功)

    文章目录 不用测了 下面测试auto_exposure_priority参数在自动曝光下的作用 下面测试在自动曝光模式下如何实时获取曝光值 测试摄像头在不同曝光值下的帧生成时间 不用测了 参考文章:I ...

  8. Tensorflow_yolov3 Intel Realsense D435奇怪的现象,多摄像头连接时一旦能检测到深度马上就会卡(卡住)

    两个摄像头连接时一旦能检测到深度马上就会卡(小于30公分),,单个摄像头没事,这是使用了多线程传输后的现象,不知咋回事... 后来加了这句验证全局变量是否存在,好像好点了,有待验证 20200401 ...

  9. 20200314 SQ Intel Realsense D435 USB 线长、转接线个数测试数据表

    测试名称 Intel Realsense D435 摄像头USB线支持最大线长.转接线个数测试 测试参数 Platform:win10x64 系统内存:32G 测试程序:tensorflow_yolo ...

最新文章

  1. Oracle10g补丁怎么安装,在CentOS6.4上安装oracle10g需要的补丁
  2. 一文解读:如何从 0 到 1 打造小程序爆款裂变
  3. python subprocess-更优雅的创建子进程
  4. linux 相关系统参数调优(特别针对网络传输,大量TIME_WAIT 的TCP状态的情况)
  5. 我安装Microsoft SQLServer 2000时出现问题
  6. JDK8中的新特性——函数式接口
  7. .NET 2.0 调用FFMPEG
  8. 什么是 HTTPS 的证书信任链?自己给自己发行不行?
  9. 第一次使用CSDN写博客
  10. Java集合移除某个元素
  11. Oracle两行数据相减
  12. Windows中Perl命令的安装
  13. Java游戏开发框架LGame-0 2 8版发布(含JavaSE及Android版,已有文档)
  14. CentOS 7的时间设置
  15. oracle时间相减
  16. 使用Swagger自动生成接口文档
  17. 【数据结构面试常见问题】
  18. 黑客与票贩子联手入侵185个政府网站
  19. java遍历map前n项_Java遍历Map的几种方式
  20. 笔记本电脑 台式计算机类比推理,2020年广西公务员考试类比推理专项练习(47)...

热门文章

  1. python输出自己的名字_【Python】Python-用大写字母打印你的名字
  2. 大数据与实体经济深度融合全国行首站将于7月10日在贵州举办
  3. 作者:程文亮(1989-),男,华东师范大学数据科学与工程研究院硕士生
  4. JavaWeb 项目时 启动一个线程
  5. 火星人(洛谷P1088题题解,C++语言描述)
  6. 洛谷 P5713、P5719、P5730、P5737题 题解(Java语言描述)
  7. 贪心策略构筑“奶牛铁塔”(洛谷P2676题题解,Java语言描述)
  8. cf449D. Jzzhu and Numbers(容斥原理 高维前缀和)
  9. GUI编程tkinter模块常用参数(python3)
  10. 一步一步写算法(之 算法总结)【转】