发现位置:usb之python(pyusb)
pypi:pyusb 1.0.2
Libraries.io教程 :pyusb Release 1.0.2
github教程:Programming with PyUSB 1.0
我的安装流程:参考tensorflow-yolov3 调试Intel Realsense D435摄像头所遇到的问题(USB自动检测并重置机制)

查看idVendor和idProduct

根据作者提供的github教程:
测试打印usb接口信息
随机挑选一个Intel Realsense摄像头,根据它的idVendor和idProduct打印它的信息:
发现深度摄像头都是一样的:

RGB摄像头都是一样的:

运行代码

# -*- coding: utf-8 -*-
"""
@File    : test_191128_测试pyusb.py
@Time    : 2019/11/28 11:24
@Author  : Dontla
@Email   : sxana@qq.com
@Software: PyCharm
"""
import usb.core
import usb.util# find our device
dev = usb.core.find(idVendor=0x8086, idProduct=0x0B07)print(dev)

结果:

D:\20191031_tensorflow_yolov3\python\python.exe D:/20191031_tensorflow_yolov3/needed/test/test_Intel_realsense/test_191128_测试pyusb.py
DEVICE ID 8086:0b07 on Bus 001 Address 014 =================bLength                :   0x12 (18 bytes)bDescriptorType        :    0x1 DevicebcdUSB                 :  0x320 USB 3.2bDeviceClass           :   0xef MiscellaneousbDeviceSubClass        :    0x2bDeviceProtocol        :    0x1bMaxPacketSize0        :    0x9 (9 bytes)idVendor               : 0x8086idProduct              : 0x0b07bcdDevice              : 0x50b6 Device 80.116iManufacturer          :    0x1 Error Accessing StringiProduct               :    0x2 Error Accessing StringiSerialNumber          :    0x3 Error Accessing StringbNumConfigurations     :    0x1CONFIGURATION 1: 110 mA ==================================bLength              :    0x9 (9 bytes)bDescriptorType      :    0x2 ConfigurationwTotalLength         :  0xb77 (2935 bytes)bNumInterfaces       :    0x5bConfigurationValue  :    0x1iConfiguration       :    0x0 bmAttributes         :   0xc0 Self PoweredbMaxPower            :   0x37 (110 mA)INTERFACE 0: Video =====================================bLength            :    0x9 (9 bytes)bDescriptorType    :    0x4 InterfacebInterfaceNumber   :    0x0bAlternateSetting  :    0x0bNumEndpoints      :    0x1bInterfaceClass    :    0xe VideobInterfaceSubClass :    0x1bInterfaceProtocol :    0x0iInterface         :    0x5 Error Accessing StringENDPOINT 0x87: Interrupt IN ==========================bLength          :    0x7 (7 bytes)bDescriptorType  :    0x5 EndpointbEndpointAddress :   0x87 INbmAttributes     :    0x3 InterruptwMaxPacketSize   :   0x40 (64 bytes)bInterval        :    0x6INTERFACE 1: Video =====================================bLength            :    0x9 (9 bytes)bDescriptorType    :    0x4 InterfacebInterfaceNumber   :    0x1bAlternateSetting  :    0x0bNumEndpoints      :    0x1bInterfaceClass    :    0xe VideobInterfaceSubClass :    0x2bInterfaceProtocol :    0x0iInterface         :    0x5 Error Accessing StringENDPOINT 0x82: Bulk IN ===============================bLength          :    0x7 (7 bytes)bDescriptorType  :    0x5 EndpointbEndpointAddress :   0x82 INbmAttributes     :    0x2 BulkwMaxPacketSize   :  0x400 (1024 bytes)bInterval        :    0x0INTERFACE 2: Video =====================================bLength            :    0x9 (9 bytes)bDescriptorType    :    0x4 InterfacebInterfaceNumber   :    0x2bAlternateSetting  :    0x0bNumEndpoints      :    0x1bInterfaceClass    :    0xe VideobInterfaceSubClass :    0x2bInterfaceProtocol :    0x0iInterface         :    0x8 Error Accessing StringENDPOINT 0x83: Bulk IN ===============================bLength          :    0x7 (7 bytes)bDescriptorType  :    0x5 EndpointbEndpointAddress :   0x83 INbmAttributes     :    0x2 BulkwMaxPacketSize   :  0x400 (1024 bytes)bInterval        :    0x0INTERFACE 3: Video =====================================bLength            :    0x9 (9 bytes)bDescriptorType    :    0x4 InterfacebInterfaceNumber   :    0x3bAlternateSetting  :    0x0bNumEndpoints      :    0x0bInterfaceClass    :    0xe VideobInterfaceSubClass :    0x1bInterfaceProtocol :    0x0iInterface         :    0x6 Error Accessing StringINTERFACE 4: Video =====================================bLength            :    0x9 (9 bytes)bDescriptorType    :    0x4 InterfacebInterfaceNumber   :    0x4bAlternateSetting  :    0x0bNumEndpoints      :    0x1bInterfaceClass    :    0xe VideobInterfaceSubClass :    0x2bInterfaceProtocol :    0x0iInterface         :    0x6 Error Accessing StringENDPOINT 0x84: Bulk IN ===============================bLength          :    0x7 (7 bytes)bDescriptorType  :    0x5 EndpointbEndpointAddress :   0x84 INbmAttributes     :    0x2 BulkwMaxPacketSize   :  0x400 (1024 bytes)bInterval        :    0x0Process finished with exit code 0

看不懂这打印的一堆是啥玩意o_o …

然后运行dev.set_configuration(),报错:

usb.core.USBError: [Errno 2] Entity not found


不丸了(╯‵□′)╯︵┻━┻

python pyusb库使用教程【在window10系统上操作USB】(操作Intel Realsense D435)相关推荐

  1. python opencv cv.applyColorMap()函数(颜色映射)ColormapTypes【将Intel Realsense D435深度图的黑白图映射为彩色图】

    文章目录 API ColormapTypes 完整应用代码[将深度图的黑白图映射为彩色图] map原理 能否map CV_24UC3的? API def applyColorMap(src, colo ...

  2. tensorflow-yolov3 调试Intel Realsense D435摄像头所遇到的问题(USB自动检测并重置机制)hardware_reset() pyusb libusb devcon

    文章目录 191126 191127 191128 191129 尝试第二种方案 Devcon 191130 191126 连接6摄像头运行,开始运行正常,能够正常识别,但不小心线动了一下,视频窗口卡 ...

  3. 基于JUPYTER的python主流库新手教程(上)

    基于JUPYTER的python主流库新手教程(上) 作者:二马传奇 0. 基本测试 for i in range(5):print(i,end=",") 0,1,2,3,4, 1 ...

  4. 适合win7的python版本_windows下多个python版本共存,如何在Windows7系统上安装最新的64位Python3.6.2...

    windows下多个python版本共存,如何在Windows7系统上安装最新的64位Python3.6.2 1.官网下载python3.6.2 https://www.python.org/ftp/ ...

  5. Intel Realsense D435 python 实战(一)

    20200519 D435包含一个有源红外摄像头,有源红外摄像头旁边的两个能够输出黑白图像,应属于双目测距, 1战 2019年8月22日 公司的Intel Realsense D435摄像头的识别系统 ...

  6. Intel Realsense d435 使用python对深度图进行预处理

    Intel Realsense d435 使用python对深度图进行预处理 本文中主要翻译一下一篇关于深度图预处理过滤器的内容,后面还会有关于距离测量的. 原文中的图像显示,是使用matplotli ...

  7. Android系统上部署usb打印机

    Android系统上部署usb打印机 一.综述 android系统现多用于手持设备,为手机等设备应用提供了很好的系统级支持.但对于PC机常用的打印功能,android到目前并不支持,也没有打印机厂家专 ...

  8. python如何拟合三维平面(拟合Intel Realsense D435深度数据点)

    文章目录 拟合Intel Realsense D435深度数据点 参考文章:[MQ笔记]超简单的最小二乘法拟合平面(Python) import numpy as np import matplotl ...

  9. python Intel Realsense D435 多线程资源分配问题(卡住、卡死)

    在使用python多线程调用Intel Realsense D435多个摄像头时,发现pyrealsense的例如pipeline.start().context.query_devices()函数会 ...

最新文章

  1. C#技术内幕 学习笔记
  2. 统计数字,空白符,制表符_为什么您应该在HTML中使用制表符空间而不是多个非空白空间(nbsp)...
  3. JavaWeb-综合案例(用户信息)-学习笔记02【登录功能】
  4. python soup findall 第几个元素_python – 如何在BeautifulSoup中获取所有父标签的列表?...
  5. visjs使用小记-1.创建一个简单的网络拓扑图
  6. 一文读懂什么是P问题、NP问题和NPC问题
  7. 程序员如何快速迁移 10 亿级数据?
  8. hibernate中多对多关系映射时的xml文件
  9. PNG in IE - 1 - pngfix.js
  10. 2018ACM-ICPC徐州赛区网络赛: D. Easy Math(Min_25筛)
  11. html大小和浏览器可视区域一样吗,浏览器窗口可视区域大小和网页尺寸和网页卷去的距离与偏移量...
  12. windows 和 ubuntu服务器之间用Xshell互传文件
  13. 美国国际集团(AIG-American International Group)
  14. 频率超出范围黑屏Linux,显示器超出频率限制黑屏怎么解决?显示器超出频率限制黑屏解决方法...
  15. PCB设计及硬件编程学习
  16. 【Java】异步回调转为同步返回
  17. 深度学习(二、全连接网络FNN)
  18. 【Face Recognition人脸识别】3. 单张图片人脸识别
  19. 3PAR证书到期后导致无法连接管理
  20. CreateFileMapping MapViewOfFile UnmapViewOfFile函数用法及示例

热门文章

  1. android listview item长按事件,ListView的点击事件,长按事件,数据刷新
  2. 固定资产增值和减值操作
  3. User Exits,Customer Exits,BADI and BTE基本概念
  4. SAP系统上线支持维护制度
  5. 税务审计SAP需要用表
  6. 为什么要划分物料组_SAP
  7. 获取日期对应的财务期间
  8. 睡眠经济的尽头,会是智能床垫吗?
  9. android gridview item添加checkbox,手把手教你实现GridView中Checkbox全选
  10. att格式汇编指令_ARM汇编伪指令介绍.