Sounds like you’ve made great progress — getting all three reliably identified and streaming through a single hub is the hard part.
Let me address your questions one at a time:
Property settings and order:
The order looks fine. In general you want resolution and FOURCC first, then FPS, then exposure/gain/WB. The reason is that some parameters can get reset or constrained by resolution changes. You’re already setting resolution and FOURCC early, so no red flags there.
A couple of observations:
- CAP_PROP_AUTO_EXPOSURE set to 1 on UVC cameras typically means manual exposure mode (you’re correct), though this can be vendor-specific. Since you’re getting the behavior you expect with the negative exposure values, you’re good.
- The WB_TEMPERATURE vs WHITE_BALANCE_BLUE_U situation you discovered isn’t unusual. The DSHOW backend’s mapping of OpenCV properties to UVC controls can be a bit inconsistent — WHITE_BALANCE_BLUE_U is directly mapped to the UVC white balance control, while WB_TEMPERATURE sometimes doesn’t map cleanly on all firmware implementations. Stick with what works.
Additional properties to consider:
- You might want to set CAP_PROP_BUFFERSIZE to 1 to minimize frame latency (default is usually higher, which adds pipeline delay).
- For the B0322 IR cameras, you could experiment with CAP_PROP_CONTRAST and CAP_PROP_GAMMA if the IR image needs more punch, but those are tuning-dependent.
USB 2.0 bandwidth — are you capped?
Short answer: pretty much, yes. Let’s run the math:
- B0322: 1280×960 @ 20fps in MJPG ≈ roughly 6-8 MB/s per camera (MJPG is compressed so it varies with scene complexity)
- Two B0322s: ~12-16 MB/s
- B0200: 640×480 @ 20fps MJPG ≈ ~2-3 MB/s
- Total: around 14-19 MB/s
USB 2.0 High Speed has a theoretical max of 480 Mbps (60 MB/s), but real-world usable bandwidth after protocol overhead, hub sharing, and isochronous transfer reservations is typically in the 25-35 MB/s range. You’re already pushing into that territory. Any resolution or FPS bump on any camera pushes you over the edge, which is exactly why you’re seeing connections drop to 2 cameras.
A few things you can try before switching to USB 3:
- Lower the MJPG quality/compression if the camera supports it (this reduces per-frame bandwidth).
- Test whether running the cameras at a lower bitrate but same resolution actually improves things — sometimes the camera’s encoder outputs are larger than necessary.
- If your application can tolerate it, drop the B0322 to 1280×720 instead of 1280×960. The aspect ratio change might be acceptable and it’ll free up meaningful bandwidth.
USB 3.0 upgrade path:
If you decide USB 3 is the right move, the B0385 and B0459 you originally evaluated are both USB 3.0 models. The B0459 with its UVC 1.5 controller is the more advanced option — it supports higher bandwidth isochronous transfers natively. You could run multiple 1080p streams at 30fps without breaking a sweat on USB 3.
For your specific application (2 IR + 1 visible), a mixed fleet of B0459 units would give you plenty of headroom. The B0385 is a solid mid-range USB 3 option if budget is a concern.
Alternative USB 2.0 models:
Honestly, for your resolution/fps requirements with 3 simultaneous streams, the B0322 + B0200 combination is about as good as it gets on USB 2.0. You’re already at the practical limit. Other USB 2 models won’t fundamentally change the bandwidth math — the bottleneck is the bus, not the cameras.
What’s your target resolution and framerate for the final application? That’ll determine whether USB 3 is worth the switch or if the current setup can be tuned to meet your needs.