Mouse control using webcam

i try to interface webcam and run the code for virtual mouse control but I have the error "No public field Exposure exists for class imaq.internal.DeviceProperties". I dont know what to do. kindly anyone help me with this??? Thank you..
vidDevice = imaq.VideoDevice('winvideo', 1, 'YUY2_640x480', ...
'ROI', [1 1 640 480], ...
'ReturnedColorSpace', 'rgb');
set(vidDevice.DeviceProperties, 'Exposure', -7);
set(vidDevice.DeviceProperties, 'FrameRate', '30.0000');
set(vidDevice.DeviceProperties, 'Sharpness', 100);
set(vidDevice.DeviceProperties, 'Zoom',2);
vidInfo = imaqhwinfo(vidDevice);

Answers (0)

This question is closed.

Asked:

on 1 Sep 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!