简体   繁体   English

您可以减慢USB总线的速度吗?

[英]Can you slow down your USB bus?

I want to build a webcam based 3D scanner, since I'm going to use a lot of webcams I doing tests before. 我想构建一个基于网络摄像头的3D扫描仪,因为我将使用很多以前做过测试的网络摄像头。

I have orderer 3 exact camera that I will drive in python to take snapshot at the same time. 我有订购者3确切的相机,我将在python中驱动同时拍摄快照。

Obviously the bus is going to be saturated when there will be 50 of them. 显然,当有50辆巴士时,这辆巴士将要饱和。 What I want to know is if the camera are able to hold the picture until they are transfered to the computer. 我想知道的是,相机在将照片传输到计算机之前是否能够保持照片。

To simulate this behavior I'd like to slow down the USB bus and make a snapshot with 3 camera, I'm under windows 7 pro, is this possible? 为了模拟这种行为,我想放慢USB总线的速度,并用3个摄像头拍摄快照,我在Windows 7 Pro下,这可能吗?

Thanks. 谢谢。

PS : couldn't I saturate the USB BUS by pluggin some USB external harddrive and doing some file transfert? PS:我不能通过插入一些USB外部硬盘驱动器并进行一些文件传输来使USB总线饱和吗?

What I want to know is if the camera are able to hold the picture until they are transfered to the computer. 我想知道的是,相机在将照片传输到计算机之前是否能够保持照片。

That depends on the camera model, but since you mention in your post you are using "webcams", then the answer is almost certainly no . 这取决于相机的型号,但是由于您在帖子中提到您使用的是“网络摄像头”,因此答案几乎肯定是“ 否” You could slow down the requests you make to the camera to take a picture though. 不过,您可以放慢对相机拍摄照片的要求。

This sequence of events is possible: 事件的顺序是可能的:

  1. wait 等待
  2. request camera takes picture 要求相机拍照
  3. camera returns picture as normal 相机正常返回图片
  4. wait 等待

This sequence of events is not possible (with webcams at least) 此事件顺序是不可能的(至少使用网络摄像头)

  1. wait 等待
  2. request camera takes picture 要求相机拍照
  3. wait 等待
  4. camera returns picture at a significantly later time that you want to have control over 相机会在很长一段时间内返回您想要控制的图片
  5. wait 等待

If you need the functionality displayed in the last sequence I provide (a controllable time between capture and readout of the picture) you will need to upgrade to a better camera, such as a machine vision camera. 如果您需要我提供的最后一个序列中显示的功能(在捕获和读取图片之间可控制的时间),则需要升级到更好的相机,例如机器视觉相机。 These cameras usually cost considerably more than webcams and are unlikely to interface over USB (though you might find some that do). 这些摄像头的价格通常比网络摄像头高得多,并且不太可能通过USB进行接口连接(尽管您可能会找到某些接口)。

You might be able to find some other solution to your problem (for instance what happens if you request 50 photos from 50 cameras nd saturate the USB bus? Do the webcams you have buffer the data well enough so that it achieves your ultimate goal, or does this affect the quality of the picture?) 您也许可以找到解决问题的其他方法(例如,如果从50个摄像机请求50张照片并使USB总线饱和,会发生什么情况?您的网络摄像头是否充分缓冲了数据以达到最终目的,或者这会影响图片质量吗?)

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

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