Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem about controlling Pan and tilt of Logitech Orbit webcam

467 views
Skip to first unread message

Edward

unread,
Jun 4, 2010, 11:47:04 AM6/4/10
to
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

unread,
Aug 13, 2010, 4:46:19 PM8/13/10
to
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

unread,
Aug 13, 2010, 6:14:04 PM8/13/10
to
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.

"Adrian " <em...@not.provided> wrote in message <i44aur$311$1...@fred.mathworks.com>...

Adrian

unread,
Aug 21, 2010, 6:59:05 PM8/21/10
to
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

unread,
Aug 21, 2010, 7:07:03 PM8/21/10
to
....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

unread,
Oct 19, 2020, 8:24:39 AM10/19/20
to
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

unread,
Aug 30, 2021, 11:29:42 AM8/30/21
to

Didier Delaey

unread,
Aug 30, 2021, 11:31:33 AM8/30/21
to
On Monday, October 19, 2020 at 2:24:39 PM UTC+2, VINEETH NAIR wrote:
no problem for me with guvcview version 2.0.4 didier...@gmail.com cam orbit sphere logitech
0 new messages