设备路径和 USB 设备

发布于 2024-12-28 21:56:46 字数 250 浏览 2 评论 0原文

我在 Windows 7 上使用 OpenCV 和 videoInput 库。我的电脑连接了更多网络摄像头,并且它们的类型相同。 VideoInput 库可以根据设备路径或友好名称来区分它们;不幸的是我不能使用后者,因为它对所有人来说都是相同的。我想知道 C++ 中是否有一种简单的方法来扫描我的所有 USB 设备,并将每个设备的设备路径关联到 USB 3 内的位置,即例如

设备路径 -> 。 root 1,端口 4

我提前谢谢你! 最好的 G。

I am using OpenCV and videoInput library on Windows 7. My PC has more webcams connected and they are of the same type. VideoInput library can differentiate them according to their device path or by their friendly name; unfortunately I cannot use the latter, since it is identical for all. I wonder if there is a simple way in C++ to scan all my USB devices and associate for each of them its device path to the position inside USB three, namely for example

device path -> root 1, port 4

I thank you in advance!
Best
G.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文