Wednesday, 7 August 2013

MATLAB code for read image from webcam

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