I use Matlab to capture images from 2-point gray cameras (Flea2), and I would like to change some parameters of cameras like Auto Exposure, Gain and Shutter Speed. So far I have used these commands:
%Creating the two video input of the two cameras cam1 = videoinput('dcam',1,'Y8_640x480'); cam2 = videoinput('dcam',2,'Y8_640x480'); %get devices properties src1 = getselectedsource(cam1); src2 = getselectedsource(cam2); %define and set parameters to be changed properties = {'AutoExposureAbsolute','AutoExposureControl', 'AutoExposureMode', 'GainAbsolute', 'GainControl', 'GainMode','ShutterAbsolute','ShutterControl', 'ShutterMode'}; values = {0,'absolute', 'manual', 0,'absolute', 'manual', 0, 'manual', 5e-06, 'absolute', 'manual'}; set(src1, properties, values) set(src2, properties, values)
So, if I display the variables src1 and src2, these properties have been changed, but when I look at the cameras, nothing has changed.
When always using the same syntax to change the frame rate, I succeeded.
image-processing matlab computer-vision camera
Pol
source share