简体   繁体   English

如何在 Ubuntu 上授予英特尔实感摄像头的权限

[英]how to give permission to intel realsense camera on Ubuntu

OS:Ubuntu 18.04 camera: Intel realsense D415操作系统:Ubuntu 18.04 摄像头:Intel realsense D415

I can use cheese to show the compound image of the camera.我可以用奶酪来显示相机的复合图像。 But when I run但是当我跑步时

import pyrealsense2 as rs
pipeline = rs.pipeline()
pipeline.start()

It throws out error access failed for 8086:ad6 uid: 1-1-12 Is anyone that knows how to solve this?它抛出错误access failed for 8086:ad6 uid: 1-1-12有人知道如何解决这个问题吗? Thanks!谢谢!

You need to install Intel Realsense permission scripts located in librealsense source directory.您需要安装位于 librealsense 源目录中的 Intel Realsense 权限脚本。

For that, first, git clone the librealsense to a local folder为此,首先,git 将 librealsense 克隆到本地文件夹

git clone https://github.com/IntelRealSense/librealsense

Next, run the following commands to copy the 99-realsense-libusb.rules files to the rules.d folder接下来,运行以下命令将99-realsense-libusb.rules文件复制到rules.d文件夹

sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/

And, then udevadm control to modify the internal state of the running udev dameon to reload rules.并且,然后udevadm control修改运行中的 udev 守护进程内部的 state 以重新加载规则。 Also, udevadm trigger to request device events from the kernel.此外, udevadm trigger可从 kernel 请求设备事件。

sudo udevadm control --reload-rules
sudo udevadm trigger

Update : I recently faced the Runtime error: backend-v412.cpp:988 - Frames didn't arrived within 5 seconds .更新:我最近遇到了Runtime error: backend-v412.cpp:988 - Frames didn't arrived within 5 seconds Seems like the pipeline is not able to handle the framebuffers, and there is quite a lot of drop in the frames, specifically above 720p, 15 frames/sec.似乎管道无法处理帧缓冲区,并且帧中有很多下降,特别是高于 720p,15 帧/秒。

Any resolutions?有什么决议吗?

Update 2:更新 2:

Resolution: As suspected it is a pipelining issue w.r.t the amount of the data the USB port can carry.解决方案:怀疑是流水线问题 w.r.t USB 端口可以承载的数据量。 To prevent frame drop or overload of data through the USB, it has to be connected to a Motherboard that has USB 3.1 Gen 1 specifications.为防止通过 USB 发生丢帧或数据过载,它必须连接到具有 USB 3.1 Gen 1 规范的主板。 Refer to page 78 of this document https://www.intelrealsense.com/wp-content/uploads/2020/06/Intel-RealSense-D400-Series-Datasheet-June-2020.pdf请参阅本文档第 78 页https://www.intelrealsense.com/wp-content/uploads/2020/06/Intel-RealSense-D400-Series-Datasheet-June-2020.pdf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM