How to use multiple USB webcam in Matlab working simutaneously?

조회 수: 2 (최근 30일)
Jianhong Mei
Jianhong Mei 2012년 5월 11일
댓글: Walter Roberson 2016년 3월 14일
I would like to capture the live video with two USB webcams (Philips SPC 900NC), but I found that they cannot work simutaneously on my laptop. Either of the two USB webcams could work alone or work with another webcam (mounted on my laptop originally).
When I use the simulink block 'From video device', Matlab gave the error message with ' Multiple VIDEOINPUT objects cannot access the same device simultaneously.'. Then I checked the video input device with command 'imaqhwinfo', only one of the USB Philips webcam could be detected.
I would like to know that,
1. what's the reason of this situation? is it because the hardware limitation (USB bus bandwidth) or just matlab video object don't support same multiple video devices?
2. what's the solution of this? could anyone give me some suggestions?
thank you very much.

채택된 답변

Walter Roberson
Walter Roberson 2012년 5월 11일
This is not a bandwidth problem, since a camera that is detected but not in active use consumes (almost) no bandwidth.
There is also no USB limitation about having multiple cameras on the same bus.
There are potential difficulties about getting acceptable frame rates when the two cameras are on the same USB bus.
I do not know why only one of the cameras would be detected. Which MATLAB version are you using?
  댓글 수: 1
Jianhong Mei
Jianhong Mei 2012년 5월 12일
Thank you very much.
My Matlab version is R2011a, and my laptop is with Intel i3 M370, 2.4GHz, 2G RAM, win7 OS.
There are some different answers about this on internet, but I don't know which is right. is it possible that because of the USB webcam driver?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Danilo Sabino
Danilo Sabino 2014년 12월 10일
Hi Walter, I am using 4 webcams simultaneously, however, I bought a USB HUB of 4 channels and I can not see a video preview using only 2 webcams that are plugged in the USB HUB (same USB bar).
Can you use 2 webcams in the same USB port? Because I just can use the webcams simultaneously in different port.
Thank you

카테고리

Help CenterFile Exchange에서 C4ISR에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by