CMUcam2 GUI working with two cameras
Hi everybody.
I am working with two cmucam2 in order to get the distance of a target using stereo vision.
Iīve been trying to modify the CMUcam2 GUI so that it can work with both cameras at the same time, but it seems to be difficult to me.
I am using two different com ports (1 camera at com 1 and the other at com 2). The program open successfully the first port but when attempting to open the second one, it fails giving -1 error.
Iīve also tried opening two different instances of the stand-alone CMUcam2 GUI. The first instance open successfully but when trying to open the second one with the other camera at com 2, it cannot open.
I am working in Windows xp. Both ports work fine because iīve tried them using the GUI with each of them not at the same time.
My question is the following: is there any version of the CMUcam2 GUI which manage to work with two cameras at the same time, each one plugged at a differente com port?
Or if there isnīt, do I have to work with threads in Java in order to access to the ports at the same time, although they are different ports?
Thanks in advance.
Paula
|