0

I have been using Matlab to capture images from an uEye Camera at regular intervals and use them for processing. The following is the small piece of code that I am using to achieve that,

h=actxcontrol('UEYECAM.uEyeCamCtrl.1','position',[250 100 640 480]);
d=h.InitCamera(1);
check = 1;
str_old = 'img000.jpeg';
m = h.SaveImage('img000.jpeg');
pause(60);

And following are the images captured by the camera. There was no change in the lighting conditions outside but you can notice the difference in the intensity levels in the image captured by the camera.

image

Is there any reason for this?

Solved thanks to Zaphod

Allow sometime for the camera to adjust its exposure. I did it by moving the pause statement to just after the InitCamera() command to delay the image capture by the camera and give it enough time to adjust itself.

4

1 回答 1

0

感谢 Zaphod 解决了

留出一些时间让相机调整其曝光。我通过将 pause 语句移动到 InitCamera() 命令之后以延迟相机的图像捕获并给它足够的时间进行自我调整来做到这一点。

h=actxcontrol('UEYECAM.uEyeCamCtrl.1','position',[250 100 640 480]);
d=h.InitCamera(1);
pause(60);
check = 1;
str_old = 'img000.jpeg';
m = h.SaveImage('img000.jpeg');
于 2018-03-21T22:09:29.420 回答