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

change webcam resolution

151 views
Skip to first unread message

kinor

unread,
Nov 15, 2012, 8:50:22 AM11/15/12
to
Hi all,

the attempt to use the image acquisition toolbox for using a webcam was really fast:

video = videoinput('winvideo',1);
preview(video)
foto = getsnapshot(video);

however the desired resolution was not achieved.
how is it possible to change the resolution?

k = imaqhwinfo('winvideo');
k.DeviceInfo.SupportedFormats

gives me the desired Format:
'RGB24_1600x1200'

the attempt to use it fails:

video = videoinput('winvideo',1, 'VideoResolution', [1600 1200]);
Error using videoinput (line 319)
The FORMAT specified is not supported by this device. See IMAQHWINFO(ADAPTORNAME).


thanks for any hint
kinor

kinor

unread,
Nov 15, 2012, 9:28:16 AM11/15/12
to
sorry solved

but a hint in the documentation of videoinput on imaqhwinfo and the connection to the supportedformats would be really helpful

...

Jason Atwood

unread,
Nov 17, 2012, 6:34:16 PM11/17/12
to
So what was your solution?

kinor

unread,
Nov 19, 2012, 3:51:09 AM11/19/12
to
"Jason Atwood" <jwat...@gmail.com> wrote in message <k896to$4bq$1...@newscl01ah.mathworks.com>...
> So what was your solution?

Hi Jason,
this is only manual:

%get the supportedformats:
k = imaqhwinfo('winvideo')
k.DeviceInfo
k.DeviceInfo.SupportedFormats

% take the desired and setup the videoinput
video = videoinput('winvideo',1,'RGB24_1600x1200');

best kinor
0 new messages