Home > Archive > Matlab > October 2006 > Urgent Help pls: Camera crashes all the time
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Urgent Help pls: Camera crashes all the time
|
|
| Patrick 2006-10-30, 7:42 pm |
| Hello
I am using a Luminera USB camera, which I initialise with
videoinput('winvideo',1, 'RGB24_640x480');
During the program execution I have to change the exposure of the
camera quite a few times. To do that I stop and then start the camera
again. This works 50 times, and then suddenly I get a segmentation
violation when I stop the camera and matlab crashes. From the camera
I get the pictures with the getsnapshot function from time to time.
Anybody an idea how I could avoid this crashes?
Thanks for any advice
Patrick.
| |
| Patrick 2006-10-31, 7:10 pm |
| >
No one an idea what the problem could be? I also have the trouble
with a typhoon webcam. Here is how I initialise the cameras:
handles.kamera1 = videoinput('winvideo',1, 'RGB24_640x480');
set(getselectedsource(handles.kamera1,'ZoomMode','manual'));
set(getselectedsource(handles. kamera1,'BacklightCompensation','off'));
set(handles.kamera1,'TriggerRepeat',Inf);
triggerconfig(handles.kamera1, 'Manual');
set(handles.kamera1,'FramesPerTrigger',1);
set(getselectedsource(handles.kamera1,'Exposure',30));
set(getselectedsource(handles.kamera1,'Brightness',40));
set(getselectedsource(handles.kamera1,'Contrast',50));
set(getselectedsource(handles.kamera1,'ExposureMode','manual'));
|
|
|
|
|