In below code to read image from web cam then write the image on your local directory.
vid = videoinput('winvideo',1);
testpic = getsnapshot(vid);
imwrite(testpic,'image1.jpg');
imshow(testpic);
No comments:
Post a Comment