How many USB cameras can be obtained on one PC

I'm just wondering how many USB cameras you can get on one desktop PC? Is there a limit? I plan to create my own Windows application (using .NET) to capture about 10 USB cameras connected to my desktop PC. Is it possible?

+6
source share
4 answers

The problem is not how much you can detect. On a single USB bus, ~ 127 may be possible.

But the USB bus can only transmit a limited number of bytes per second. Therefore, if you want to use more than one, you need to calculate the amount of bandwidth that you have for the video stream.

Example: Usually, a USB bus can provide ~ 35 MB / s realism. 640 * 480 * 2 bytes per pixel => 614,400 bytes per frame. @ 30 FPS - ~ 17 MB / s, so you can use 2 cameras at the same time with this setting.

+15
source

If this is true, see the code for connecting 5 cams to one computer (i3 processor core, 8 GB RAM!), You need to connect all cameras to USB ports only on your computer! git link hub

+1
source

[Changed]

Actually, see this article that explains: Get a list of connected USB devices

I'm not sure there is a maximum. I will check and send back if I find out.

[Further editing]

Unable to find documented maximum. Theoretically, ManagementObjectCollection should be able to hold millions of objects in it. If you have any problems (which I doubt 10 devices), you can simply pre-allocate the size of the collection after creating the instance.

I just checked the test and I can pick up more than 10 USB devices through a hub. You must be fine.

0
source

The maximum limit for USB devices connected to one host is 127. Thus, you can connect up to 100 devices and they will work fine (100+ - since the hub is also an active device and has its own address).
Perhaps you are trying to access the first (already active) camera and the program crash because the camera is already locked?

0
source

Source: https://habr.com/ru/post/913684/


All Articles