Multi-Camera Support (Updated for CCV)
|Assigned to:||-||% Done:||
|Target version:||Version 1.3 (Windows - Stable)|
I adapted my code as a patch for the new version of CCV. This patch makes it so CCV will work with 2 cameras.
I only got around to testing on my setup which is 2 ps3 eye cameras on OSX. I think this will need to be further developed to run on anything but OSX. I also didn't add support for cameras like the firefly. Firefly or firewire cameras would be better than USB as I am only getting about 25 fps due to the USB bus.
I basically changed all the variables that relate to the camera into arrays, so although right now it's only for 2 cameras, it could be easily adapted to handle more. I changed the config.xml to be set up for this in the future (there's a "NUM_SOURCES" entry etc.)
I also added buttons to the UI to allow for different arrangements and spacings of the cameras.
I'm really new to all this, so to help any other newbs, this is how I applied the patch:
place the patch in the "ccv-read-only" folder
open the terminal and navigate to the directory of the source, for me it's this:
$ cd /Users/dvondle/Desktop/CCV/ccv-read-only
then apply the patch:
$ patch -p0 -i 2camera.patch