Hi guys,
I am connecting 4 cameras, I want to permanently assign each camera a specific camera number using their unique GUID number, so everytime i plug in the the 4 cameras each camera will be initialized in the correct order and assigned to the correct camera number/window.
The base code i’m using is the CLEyeMultiCamTest c++ example.
The relevant part of the main function that sets up each connected camera based on GUID is as follows:
for(int i = 0; i < numCams; i++)
{
char windowName[64];
// Query unique camera uuid
GUID guid = CLEyeGetCameraUUID(i);
printf("Camera %d GUID: [x-x-x-xxxxxxxx]\n",
i+1, guid.Data1, guid.Data2, guid.Data3,
guid.Data4[0], guid.Data4[1], guid.Data4[2],
guid.Data4[3], guid.Data4[4], guid.Data4[5],
guid.Data4[6], guid.Data4[7]);
sprintf(windowName, "Camera Window %d", i+1);
// Create camera capture object
// Set Color video, vga quality and fps
cam[i] = new CLEyeCameraCapture(windowName, guid, CLEYE_COLOR, CLEYE_VGA, 30);
printf("Starting capture on camera %d\n", i+1);
cam[i]->StartCapture();
}
What would the best method of storing my 4 cameras GUID numbers and initilizing each new camera capture in the correct order?
I have tried various methods, including getting rid of the for loop and setting up each camera capture object manually but i wasn’t successfull when trying to compare GUID numbers!
Hope you can help and point me in the right direction:-)
Cheers,
Alan