DSPRelated.com
Forums

stereovision

Started by Miha Uratnik October 30, 2007
Hello!

I am trying to capture video from two cameras simultaneously - stereovision.

I got the input stream from one camera ok, while I am having problems with
the other one. Both cameras are USB webcam and same model.

I have used the following code to get the acquisition of the image:

imaqhwinfo //gives me the preview of installed adapters, got {
'winvideo' } ... which is ok, next I have used

cam=imaqhwinfo('winvideo') //that give me, DeviceIDs, and other
stuff...

however, DeviceIDs: {1x0 cell} //(was expecting, for example {[1],
[2]} two cameras, as it returns for one connected camera only)

If anybody has previously use two cameras in Matlab, let me know, if I am on
the right path...and , if {1x0 cell} means that I have two cameras
available, how to pass this info to videoinput('winvideo', 1) ?

Best, Miha