Why am I unable to obtain any device properties when creating video input objects using the winvideo adapter with the Image Acquisition Toolbox 1.0 (R13.0.1+)?

7 views (last 30 days)
Why am I unable to obtain any device properties when creating video input objects using the winvideo adapter with the Image Acquisition Toolbox 1.0 (R13.0.1+)?
Why am I unable to access device specific properties, like brightness and frame rate settings, using my Windows video web cam?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
To access device specific properties, the selected video source object must be accessed.
% Create a video input object using a Windows web cam.
vid = videoinput('winvideo', 1);
% Access the selected video source object.
src = getselectedsource(vid);
% Determine what device specific properties are available.
get(src)
If device specific settings, like frame rate or brightness, are not available on the video source object, the device does not provide access to device specific settings. This is usually caused by devices using the older VFW (Video for Windows) device drivers, which do not always expose the DirectX interfaces required by the toolbox. Without these interfaces, the toolbox cannot programmatically query the device for any properties, which prevents the toolbox from providing a command line interface to the device settings.
Although the device may provide a UI interface to various image and device settings, the toolbox can only provide access to the settings exposed through standard DirectX interfaces. Often times, device manufacturers will develop their own custom UI panels that expose various settings. However, these settings are only accessible using the graphical UI panels, not by any programatic DirectX interface.
To work around this, use the device's application UI to configure the desired settings.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!