Hi,
I am trying to capture image from a webcam. The image snapshot has to be taken after a mouse click. I want to have a click button on preview screen. Can anyone help me do this? Below part is my code to capture image from webcam.
% webcam capture
cam1 = webcam('FaceTime');preview(cam1);pause(5);img = snapshot(cam1);closePreview(cam1);imshow(img);clear('cam1');
Best Answer