you choose from 3 radiobutton the setting you prefer (320x240 @125 , 320x240 @187 and 640x480 @75) :
var:
int numCameras = 0;
int gain = 0;
int frame = 75;
CLEyeCameraResolution res = CLEyeCameraResolution.CLEYE_VGA;
if (radioButton1.IsChecked == true)
{
frame = 187;
res = CLEyeCameraResolution.CLEYE_QVGA;
}
if (radioButton2.IsChecked == true)
{
frame = 75;
res = CLEyeCameraResolution.CLEYE_VGA;
}
if (radioButton3.IsChecked == true)
{
frame = 125;
res = CLEyeCameraResolution.CLEYE_QVGA;
}
}
the code for start button is this:
// crea camera e parti
if (numCameras >= 1)
{
camera1.Device.Create(CLEyeCameraDevice.CameraUUID(0));
camera1.Device.Resolution = res;
camera1.Device.Framerate = frame;
gain = camera1.Device.Gain;
label5.Content = gain.ToString();
camera1.Device.AutoGain = true;
camera1.Device.Start();
}
if (numCameras == 2)
{
camera2.Device.Create(CLEyeCameraDevice.CameraUUID(1));
camera2.Device.Resolution = res;
camera2.Device.Framerate = frame;
camera2.Device.AutoGain = true;
camera2.Device.Start();
}
label1.Content = “Res1: ” + camera1.Device.Resolution.ToString();
label3.Content = “FPS1: ” + camera1.Device.Framerate.ToString();
/////////////////////////
my test machine is a laptop (quite old unfortunately) core 2 duo t5600 @1,83 ghz , 2,5 Gb ddr2 and a seagate hd 7200 rpm 32MB cache.
in theory video lenght is quite short, like at max 1 minute.