MATLAB: Change the resolution in image acquired by webcam command

digital image processingImage Acquisition Toolboximage processingImage Processing Toolboxwebcam

the command i am using is
vid = webcam;
img= snapshot(vid);
and is there also a way i can crop the input image to specified region of interest?

Best Answer

cam.AvailableResolutions
check your camera available resolutions
Change the resolution.
cam.Resolution = '630x400';
for more help check the following link
https://www.mathworks.com/help/supportpkg/usbwebcams/ug/set-properties-for-webcam-acquisition.html