Discussion:
Problem about controlling Pan and tilt of Logitech Orbit webcam
(too old to reply)
Edward
2010-06-04 15:47:04 UTC
Permalink
Dear all,

I have a Logitech QuickCam Orbit AF (Model: V-UCC22) try to control the pan and tilt in Matlab. I try to use the following code to do so but it doesn't work:

vid = videoinput('winvideo',1);
src = getselectedsource(vid);
src.pan = 30;
src.tilt = 30;

The values of src.pan and src.tilt change but not the logitech camera.

I am using Windows 7, Matlab R2009b and logitech driver version 12.10.1110.0. Do I need to install additional programs to make the pan and tilt in Matlab work?

Thanks,
Edward
Adrian
2010-08-13 20:46:19 UTC
Permalink
My guess is that you first need to 'zoom' in on the object with your camera before the pan and tilt functions will work. The pan and tilt on a digital camera are achieved by using different parts of the detector chip. If the whole of the detector chip is being used for the image (when the camera is zoomed out), there is no empty space left on the edges of the detector to effectively pan and tilt. It is only if you are zoomed in on your object and the image is being displayed on only a part of the detector that you can then activate the digital pan and tilt functions.
Edward
2010-08-13 22:14:04 UTC
Permalink
Hi Adrian,

Thanks for your reply. However, the camera I have is using mechanical pan/tilt, not digital one. Therefore, it doesn't matter if I zoom or not for controlling the mechanical pan/tilt.
Post by Adrian
My guess is that you first need to 'zoom' in on the object with your camera before the pan and tilt functions will work. The pan and tilt on a digital camera are achieved by using different parts of the detector chip. If the whole of the detector chip is being used for the image (when the camera is zoomed out), there is no empty space left on the edges of the detector to effectively pan and tilt. It is only if you are zoomed in on your object and the image is being displayed on only a part of the detector that you can then activate the digital pan and tilt functions.
Adrian
2010-08-21 22:59:05 UTC
Permalink
Try the following code and see what video source properties Matlab gives you access to.

info = imaqhwinfo('winvideo');
% note: for the SupportedFormat field, you may have many options to choose from
% but certainly, you will have at least 1, therefore this code will give you the
% first supported image format
vidobj = videoinput('winvideo', 1, info.DeviceInfo(1,1).SupportedFormats{1});
selectedsrc = getselectedsource(vidobj);
get(selectedsrc)

for my camera, I see the following:

General Settings:
Parent = [1x1 videoinput]
Selected = on
SourceName = input1
Tag =
Type = videosource

Device Specific Properties:
BacklightCompensation = on
Brightness = 128
Contrast = 32
Exposure = -6
ExposureMode = auto
FrameRate = 30.0000
Gain = 0
Saturation = 32
Sharpness = 48
WhiteBalance = 4000
WhiteBalanceMode = auto

Setting these properties allows you to control the camera. It may be that you have acess to pan and tilt video source properties this way.

For example, to get the current gain setting you can then use:
get(selectedsrc, 'Gain');
or to set the gain setting to a 'valid' value you could use:
set(selectedsrc, 'Gain', 0);
Adrian
2010-08-21 23:07:03 UTC
Permalink
....Oh sorry, I see you tried this!! I didn't read yur original post again (sorry). I presume you are setting valid pan and tilt values - I guess so otherwise that would generate an error.
VINEETH NAIR
2020-10-19 12:24:29 UTC
Permalink
Post by Edward
Hi Adrian,
Thanks for your reply. However, the camera I have is using mechanical pan/tilt, not digital one. Therefore, it doesn't matter if I zoom or not for controlling the mechanical pan/tilt.
Post by Adrian
My guess is that you first need to 'zoom' in on the object with your camera before the pan and tilt functions will work. The pan and tilt on a digital camera are achieved by using different parts of the detector chip. If the whole of the detector chip is being used for the image (when the camera is zoomed out), there is no empty space left on the edges of the detector to effectively pan and tilt. It is only if you are zoomed in on your object and the image is being displayed on only a part of the detector that you can then activate the digital pan and tilt functions.
Its a really old post but replying for others still referring to this post. In MATLAB when you are changing the pan and tilt values, those are essentially digital properties. Probably there is some other way to control these properties mechanically.
Didier Delaey
2021-08-30 15:29:37 UTC
Permalink
Post by VINEETH NAIR
Post by Edward
Hi Adrian,
Thanks for your reply. However, the camera I have is using mechanical pan/tilt, not digital one. Therefore, it doesn't matter if I zoom or not for controlling the mechanical pan/tilt.
Post by Adrian
My guess is that you first need to 'zoom' in on the object with your camera before the pan and tilt functions will work. The pan and tilt on a digital camera are achieved by using different parts of the detector chip. If the whole of the detector chip is being used for the image (when the camera is zoomed out), there is no empty space left on the edges of the detector to effectively pan and tilt. It is only if you are zoomed in on your object and the image is being displayed on only a part of the detector that you can then activate the digital pan and tilt functions.
Its a really old post but replying for others still referring to this post. In MATLAB when you are changing the pan and tilt values, those are essentially digital properties. Probably there is some other way to control these properties mechanically.
Didier Delaey
2021-08-30 15:31:28 UTC
Permalink
Post by VINEETH NAIR
Post by Edward
Hi Adrian,
Thanks for your reply. However, the camera I have is using mechanical pan/tilt, not digital one. Therefore, it doesn't matter if I zoom or not for controlling the mechanical pan/tilt.
Post by Adrian
My guess is that you first need to 'zoom' in on the object with your camera before the pan and tilt functions will work. The pan and tilt on a digital camera are achieved by using different parts of the detector chip. If the whole of the detector chip is being used for the image (when the camera is zoomed out), there is no empty space left on the edges of the detector to effectively pan and tilt. It is only if you are zoomed in on your object and the image is being displayed on only a part of the detector that you can then activate the digital pan and tilt functions.
Its a really old post but replying for others still referring to this post. In MATLAB when you are changing the pan and tilt values, those are essentially digital properties. Probably there is some other way to control these properties mechanically.
no problem for me with guvcview version 2.0.4 ***@gmail.com cam orbit sphere logitech
Loading...