MATLAB: Vcapg2

image acquisitionvcapg2webcam

does anyone know how to capture and save image from live webcam using vcapg2??

Best Answer

i already get it...
%For Camera Captured
%
cardum=vcapg2;
x=vcapg2;
imwrite (x,'cam1.jpg');
subplot(4,2,1);
imshow (x);
title('cam1');
% Read Image
x = imread('cam1.jpg');
imshow(x);
subplot(4,2,2);
imwrite (x,'cam1.jpg');
title('Original Image');
Related Question