From: Adrian on 13 Aug 2010 17:02 I have not worked with that Logitech camera, but have with another. Matlab is generally good at giving you access to the camera properties. You can find out which properties you can easily control in Matlab using the following code: vidobj = videoinput('winvideo', 1); selectedsrc = getselectedsource(vidobj); % to show the prooerties you can control do the following get(selectedsrc) This gives the following information on the Command Window: General Settings: Parent = [1x1 videoinput] Selected = on SourceName = input1 Tag = Type = videosource Device Specific Properties: BacklightCompensation = on Brightness = 128 Contrast = 32 Exposure = -7 ExposureMode = auto FrameRate = 30.0000 Gain = 0 Saturation = 32 Sharpness = 48 WhiteBalance = 4000 WhiteBalanceMode = auto Once you have that list, changing properties is just a matter of finding out what the relavant ranges are for each property. It might be that your camera gives you access to the motorized Pan/Tilt angles in this property list. If so, you can simply set these to the desired states. For example, to set the frame rate of the camera to 25 FPS, you would use: set(selectedsrc, 'FrameRate', '25.0000');
|
Pages: 1 Prev: Help with changing variable names by a string Next: Writing string to text document |